/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __BLENDER_DEFINE_H__
#define __BLENDER_DEFINE_H__

/*
	This include file must include after any Ogre include files.
	For this include file define some symbol that ogre use.
	If include before any Ogre include file,can cause some Ogre symbol already defined
*/
#define BLENDER_IDNAME(x) ((x) && (x)->id.name[0] != '0' ? (x)->id.name + 2 : "")

#define ACT_FORCE_LOCAL						  1
#define ACT_TORQUE_LOCAL						 2
#define ACT_SERVO_LIMIT_X						2
#define ACT_DLOC_LOCAL						   4
#define ACT_SERVO_LIMIT_Y						4
#define ACT_DROT_LOCAL						   8
#define ACT_SERVO_LIMIT_Z						8
#define ACT_LIN_VEL_LOCAL						16
#define ACT_ANG_VEL_LOCAL						32
#define ACT_ADD_LIN_VEL						  64
#define ACT_OBJECT_NORMAL						0
#define ACT_OBJECT_SERVO						 1
#define ACT_OBJECT							   0
#define ACT_IPO								  1
#define ACT_LAMP								 2
#define ACT_CAMERA							   3
#define ACT_MATERIAL							 4
#define ACT_SOUND								5
#define ACT_PROPERTY							 6
#define ACT_ADD_OBJECT						   7
#define ACT_END_OBJECT						   8
#define ACT_CONSTRAINT						   9
#define ACT_EDIT_OBJECT						  10
#define ACT_SCENE								11
#define ACT_GROUP								12
#define ACT_RANDOM							   13
#define ACT_MESSAGE							  14
#define ACT_ACTION							   15
#define ACT_CD								   16
#define ACT_GAME								 17
#define ACT_VISIBILITY						   18
#define ACT_2DFILTER							 19
#define ACT_PARENT							   20
#define ACT_SHAPEACTION						  21
#define ACT_STATE								22
#define ACT_SHOW								 1
#define ACT_DEL								  2
#define ACT_NEW								  4
#define ACT_LINKED							   8
#define ACT_VISIBLE							  16
#define ACT_PIN								  32
#define LINK_SENSOR							  0
#define LINK_CONTROLLER						  1
#define LINK_ACTUATOR							2
#define SENS_ALL_KEYS							1
#define ACT_ACTION_PLAY						  0
#define ACT_ACTION_PINGPONG					  1
#define ACT_ACTION_FLIPPER					   2
#define ACT_ACTION_LOOP_STOP					 3
#define ACT_ACTION_LOOP_END					  4
#define ACT_ACTION_KEY2KEY					   5
#define ACT_ACTION_FROM_PROP					 6
#define ACT_ACTION_MOTION						7
#define ACT_IPO_PLAY							 0
#define ACT_IPO_PINGPONG						 1
#define ACT_IPO_FLIPPER						  2
#define ACT_IPO_LOOP_STOP						3
#define ACT_IPO_LOOP_END						 4
#define ACT_IPO_KEY2KEY						  5
#define ACT_IPO_FROM_PROP						6
#define ACT_GROUP_PLAY						   0
#define ACT_GROUP_PINGPONG					   1
#define ACT_GROUP_FLIPPER						2
#define ACT_GROUP_LOOP_STOP					  3
#define ACT_GROUP_LOOP_END					   4
#define ACT_GROUP_FROM_PROP					  5
#define ACT_GROUP_SET							6
#define ACT_IPOFORCE							 (1<<0)
#define ACT_IPOEND							   (1<<1)
#define ACT_IPOLOCAL							 (1<<2)
#define ACT_IPOCHILD							 (1<<4)
#define ACT_IPOADD							   (1<<5)
#define ACT_K2K_PREV							 1
#define ACT_K2K_CYCLIC						   2
#define ACT_K2K_PINGPONG						 4
#define ACT_K2K_HOLD							 8
#define ACT_PROP_ASSIGN						  0
#define ACT_PROP_ADD							 1
#define ACT_PROP_COPY							2
#define ACT_PROP_TOGGLE						  3
#define ACT_CONST_LOCX						   1
#define ACT_CONST_LOCY						   2
#define ACT_CONST_LOCZ						   4
#define ACT_CONST_ROTX						   8
#define ACT_CONST_ROTY						   16
#define ACT_CONST_ROTZ						   32
#define ACT_CONST_NORMAL						 64
#define ACT_CONST_MATERIAL					   128
#define ACT_CONST_PERMANENT					  256
#define ACT_CONST_DISTANCE					   512
#define ACT_CONST_LOCAL						  1024
#define ACT_CONST_DOROTFH						2048
#define ACT_CONST_DIRPX						  1
#define ACT_CONST_DIRPY						  2
#define ACT_CONST_DIRPZ						  4
#define ACT_CONST_DIRNX						  8
#define ACT_CONST_DIRNY						  16
#define ACT_CONST_DIRNZ						  32
#define ACT_CONST_TYPE_LOC					   0
#define ACT_CONST_TYPE_DIST					  1
#define ACT_CONST_TYPE_ORI					   2
#define ACT_CONST_TYPE_FH						3
#define ACT_EDOB_ADD_OBJECT					  0
#define ACT_EDOB_END_OBJECT					  1
#define ACT_EDOB_REPLACE_MESH					2
#define ACT_EDOB_TRACK_TO						3
#define ACT_EDOB_DYNAMICS						4
#define ACT_EDOB_LOCAL_LINV					  2
#define ACT_EDOB_LOCAL_ANGV					  4
#define ACT_TRACK_3D							 1
#define ACT_SCENE_RESTART						0
#define ACT_SCENE_SET							1
#define ACT_SCENE_CAMERA						 2
#define ACT_SCENE_ADD_FRONT					  3
#define ACT_SCENE_ADD_BACK					   4
#define ACT_SCENE_REMOVE						 5
#define ACT_SCENE_SUSPEND						6
#define ACT_SCENE_RESUME						 7
#define ACT_RANDOM_BOOL_CONST					0
#define ACT_RANDOM_BOOL_UNIFORM				  1
#define ACT_RANDOM_BOOL_BERNOUILLI			   2
#define ACT_RANDOM_INT_CONST					 3
#define ACT_RANDOM_INT_UNIFORM				   4
#define ACT_RANDOM_INT_POISSON				   5
#define ACT_RANDOM_FLOAT_CONST				   6
#define ACT_RANDOM_FLOAT_UNIFORM				 7
#define ACT_RANDOM_FLOAT_NORMAL				  8
#define ACT_RANDOM_FLOAT_NEGATIVE_EXPONENTIAL	9
#define ACT_SND_PLAY_STOP_SOUND				  0
#define ACT_SND_PLAY_END_SOUND				   1
#define ACT_SND_LOOP_STOP_SOUND				  2
#define ACT_SND_LOOP_END_SOUND				   3
#define ACT_SND_LOOP_BIDIRECTIONAL_SOUND		 4
#define ACT_SND_LOOP_BIDIRECTIONAL_STOP_SOUND	5
#define ACT_MESG_MESG							0
#define ACT_MESG_PROP							1
#define ACT_CD_PLAY_ALL						  0
#define ACT_CD_PLAY_TRACK						1
#define ACT_CD_LOOP_TRACK						2
#define ACT_CD_VOLUME							3
#define ACT_CD_STOP							  4
#define ACT_CD_PAUSE							 5
#define ACT_CD_RESUME							6
#define ACT_GAME_LOAD							0
#define ACT_GAME_START						   1
#define ACT_GAME_RESTART						 2
#define ACT_GAME_QUIT							3
#define ACT_GAME_SAVECFG						 4
#define ACT_GAME_LOADCFG						 5
#define ACT_VISIBILITY_INVISIBLE				 (1<<0)
#define ACT_VISIBILITY_RECURSIVE				 (1<<1)
#define ACT_VISIBILITY_OCCLUSION				 (1<<2)
#define ACT_2DFILTER_ENABLED					 -2
#define ACT_2DFILTER_DISABLED					-1
#define ACT_2DFILTER_NOFILTER					0
#define ACT_2DFILTER_MOTIONBLUR				  1
#define ACT_2DFILTER_BLUR						2
#define ACT_2DFILTER_SHARPEN					 3
#define ACT_2DFILTER_DILATION					4
#define ACT_2DFILTER_EROSION					 5
#define ACT_2DFILTER_LAPLACIAN				   6
#define ACT_2DFILTER_SOBEL					   7
#define ACT_2DFILTER_PREWITT					 8
#define ACT_2DFILTER_GRAYSCALE				   9
#define ACT_2DFILTER_SEPIA					   10
#define ACT_2DFILTER_INVERT					  11
#define ACT_2DFILTER_CUSTOMFILTER				12
#define ACT_2DFILTER_NUMBER_OF_FILTERS		   13
#define ACT_PARENT_SET						   0
#define ACT_PARENT_REMOVE						1
#define ACT_PARENT_COMPOUND					  1
#define ACT_PARENT_GHOST						 2
#define BOIDRULE_CURRENT						 1
#define BOIDRULE_IN_AIR						  4
#define BOIDRULE_ON_LAND						 8
#define BRULE_GOAL_AVOID_PREDICT				 1
#define BRULE_GOAL_AVOID_ARRIVE				  2
#define BRULE_GOAL_AVOID_SIGNAL				  4
#define BRULE_ACOLL_WITH_BOIDS				   1
#define BRULE_ACOLL_WITH_DEFLECTORS			  2
#define BRULE_LEADER_IN_LINE					 1
#define BOIDSTATE_CURRENT						1
#define BOID_ALLOW_FLIGHT						1
#define BOID_ALLOW_LAND						  2
#define BOID_ALLOW_CLIMB						 4
#define MAX_MTEX								 18
#define BRUSH_AIRBRUSH						   1
#define BRUSH_TORUS							  2
#define BRUSH_ALPHA_PRESSURE					 4
#define BRUSH_SIZE_PRESSURE					  8
#define BRUSH_RAD_PRESSURE					   16
#define BRUSH_SPACING_PRESSURE				   32
#define BRUSH_FIXED_TEX						  64
#define BRUSH_RAKE							   128
#define BRUSH_ANCHORED						   256
#define BRUSH_DIR_IN							 512
#define BRUSH_SPACE							  1024
#define BRUSH_SMOOTH_STROKE					  2048
#define BRUSH_BLEND_MIX						  0
#define BRUSH_BLEND_ADD						  1
#define BRUSH_BLEND_SUB						  2
#define BRUSH_BLEND_MUL						  3
#define BRUSH_BLEND_LIGHTEN					  4
#define BRUSH_BLEND_DARKEN					   5
#define BRUSH_BLEND_ERASE_ALPHA				  6
#define BRUSH_BLEND_ADD_ALPHA					7
#define BRUSH_TEX_DRAG						   0
#define BRUSH_TEX_TILE						   1
#define BRUSH_TEX_3D							 2
#define SCULPT_TOOL_DRAW						 1
#define SCULPT_TOOL_SMOOTH					   2
#define SCULPT_TOOL_PINCH						3
#define SCULPT_TOOL_INFLATE					  4
#define SCULPT_TOOL_GRAB						 5
#define SCULPT_TOOL_LAYER						6
#define SCULPT_TOOL_FLATTEN					  7
#define SCULPT_TOOL_CLAY						 8
#define PAINT_TOOL_DRAW						  0
#define PAINT_TOOL_SOFTEN						1
#define PAINT_TOOL_SMEAR						 2
#define PAINT_TOOL_CLONE						 3
#define CAM_PERSP								0
#define CAM_ORTHO								1
#define CAM_SHOWLIMITS						   1
#define CAM_SHOWMIST							 2
#define CAM_SHOWPASSEPARTOUT					 4
#define CAM_SHOWTITLESAFE						8
#define CAM_SHOWNAME							 16
#define CAM_ANGLETOGGLE						  32
#define CAM_DS_EXPAND							64
#define CAM_PANORAMA							 128
#define CAM_YF_NO_QMC							512
#define CM_RESOL								 32
#define CM_TABLE								 256
#define CM_TABLEDIV							  (1.0f/256.0f)
#define CM_TOT								   4
#define CUMA_SELECT							  1
#define CUMA_VECTOR							  2
#define CUMA_EXTEND_EXTRAPOLATE				  1
#define CUMA_DO_CLIP							 1
#define CUMA_PREMULLED						   2
#define CUMA_DRAW_CFRA						   4
#define CUMA_DRAW_SAMPLE						 8
#define ROTLIKE_X								0x01
#define ROTLIKE_Y								0x02
#define ROTLIKE_Z								0x04
#define ROTLIKE_X_INVERT						 0x10
#define ROTLIKE_Y_INVERT						 0x20
#define ROTLIKE_Z_INVERT						 0x40
#define ROTLIKE_OFFSET						   0x80
#define LOCLIKE_X								0x01
#define LOCLIKE_Y								0x02
#define LOCLIKE_Z								0x04
#define LOCLIKE_TIP							  0x08
#define LOCLIKE_X_INVERT						 0x10
#define LOCLIKE_Y_INVERT						 0x20
#define LOCLIKE_Z_INVERT						 0x40
#define LOCLIKE_OFFSET						   0x80
#define SIZELIKE_X							   0x01
#define SIZELIKE_Y							   0x02
#define SIZELIKE_Z							   0x04
#define SIZELIKE_OFFSET						  0x80
#define LOCK_X								   0x00
#define LOCK_Y								   0x01
#define LOCK_Z								   0x02
#define UP_X									 0x00
#define UP_Y									 0x01
#define UP_Z									 0x02
#define TRACK_X								  0x00
#define TRACK_Y								  0x01
#define TRACK_Z								  0x02
#define TRACK_nX								 0x03
#define TRACK_nY								 0x04
#define TRACK_nZ								 0x05
#define TARGET_Z_UP							  0x01
#define VOLUME_XZ								0x00
#define VOLUME_X								 0x01
#define VOLUME_Z								 0x02
#define NO_VOLUME								0x03
#define PLANE_X								  0x00
#define PLANE_Y								  0x01
#define PLANE_Z								  0x02
#define CLAMPTO_AUTO							 0
#define CLAMPTO_X								1
#define CLAMPTO_Y								2
#define CLAMPTO_Z								3
#define CLAMPTO_CYCLIC						   1
#define CONSTRAINT_IK_TIP						1
#define CONSTRAINT_IK_ROT						2
#define CONSTRAINT_IK_AUTO					   4
#define CONSTRAINT_IK_TEMP					   8
#define CONSTRAINT_IK_STRETCH					16
#define CONSTRAINT_IK_POS						32
#define CONSTRAINT_IK_SETANGLE				   64
#define CONSTRAINT_IK_GETANGLE				   128
#define MINMAX_STICKY							0x01
#define MINMAX_STUCK							 0x02
#define MINMAX_USEROT							0x04
#define LIMIT_XMIN							   0x01
#define LIMIT_XMAX							   0x02
#define LIMIT_YMIN							   0x04
#define LIMIT_YMAX							   0x08
#define LIMIT_ZMIN							   0x10
#define LIMIT_ZMAX							   0x20
#define LIMIT_XROT							   0x01
#define LIMIT_YROT							   0x02
#define LIMIT_ZROT							   0x04
#define LIMIT_NOPARENT						   0x01
#define LIMIT_TRANSFORM						  0x02
#define LIMITDIST_USESOFT						(1<<0)
#define LIMITDIST_INSIDE						 0
#define LIMITDIST_OUTSIDE						1
#define LIMITDIST_ONSURFACE					  2
#define PYCON_USETARGETS						 0x01
#define PYCON_SCRIPTERROR						0x02
#define CHILDOF_LOCX							 0x001
#define CHILDOF_LOCY							 0x002
#define CHILDOF_LOCZ							 0x004
#define CHILDOF_ROTX							 0x008
#define CHILDOF_ROTY							 0x010
#define CHILDOF_ROTZ							 0x020
#define CHILDOF_SIZEX							0x040
#define CHILDOF_SIZEY							0x080
#define CHILDOF_SIZEZ							0x100
#define CONSTRAINT_DRAW_PIVOT					0x40
#define CONSTRAINT_DISABLE_LINKED_COLLISION	  0x80
#define CONSTRAINT_RB_BALL					   1
#define CONSTRAINT_RB_HINGE					  2
#define CONSTRAINT_RB_CONETWIST				  4
#define CONSTRAINT_RB_VEHICLE					11
#define CONSTRAINT_RB_GENERIC6DOF				12
#define CONT_LOGIC_AND						   0
#define CONT_LOGIC_OR							1
#define CONT_EXPRESSION						  2
#define CONT_PYTHON							  3
#define CONT_LOGIC_NAND						  4
#define CONT_LOGIC_NOR						   5
#define CONT_LOGIC_XOR						   6
#define CONT_LOGIC_XNOR						  7
#define CONT_SHOW								1
#define CONT_DEL								 2
#define CONT_NEW								 4
#define CONT_MASK								8
#define CONT_PRIO								16
#define CONT_PY_DEBUG							1
#define MAXTEXTBOX							   256
#define CU_AUTOSPACE							 1
#define CU_3D									1
#define CU_FRONT								 2
#define CU_BACK								  4
#define CU_PATH								  8
#define CU_FOLLOW								16
#define CU_UV_ORCO							   32
#define CU_NOPUNOFLIP							64
#define CU_STRETCH							   128
#define CU_OFFS_PATHDIST						 256
#define CU_FAST								  512
#define CU_RETOPO								1024
#define CU_DS_EXPAND							 2048
#define CU_LEFT								  0
#define CU_MIDDLE								1
#define CU_RIGHT								 2
#define CU_JUSTIFY							   3
#define CU_FLUSH								 4
#define CU_SMOOTH								1
#define CU_POLY								  0
#define CU_BEZIER								1
#define CU_BSPLINE							   2
#define CU_CARDINAL							  3
#define CU_NURBS								 4
#define CU_TYPE								  7
#define CU_2D									8
#define CU_PRIMITIVE							 0xF00
#define CU_PRIM_CURVE							0x100
#define CU_PRIM_CIRCLE						   0x200
#define CU_PRIM_PATCH							0x300
#define CU_PRIM_TUBE							 0x400
#define CU_PRIM_SPHERE						   0x500
#define CU_PRIM_DONUT							0x600
#define CU_PRIM_PATH							 0x700
#define CU_CYCLIC								1
#define CU_STYLE								 (1+2)
#define CU_BOLD								  1
#define CU_ITALIC								2
#define CU_UNDERLINE							 4
#define CU_WRAP								  8
#define CD_MVERT								 0
#define CD_MSTICKY							   1
#define CD_MDEFORMVERT						   2
#define CD_MEDGE								 3
#define CD_MFACE								 4
#define CD_MTFACE								5
#define CD_MCOL								  6
#define CD_ORIGINDEX							 7
#define CD_NORMAL								8
#define CD_FLAGS								 9
#define CD_PROP_FLT							  10
#define CD_PROP_INT							  11
#define CD_PROP_STR							  12
#define CD_ORIGSPACE							 13
#define CD_ORCO								  14
#define CD_MTEXPOLY							  15
#define CD_MLOOPUV							   16
#define CD_MLOOPCOL							  17
#define CD_TANGENT							   18
#define CD_MDISPS								19
#define CD_WEIGHT_MCOL						   20
#define CD_NUMTYPES							  21
#define CD_MASK_MVERT							(1<<CD_MVERT)
#define CD_MASK_MSTICKY						  (1<<CD_MSTICKY)
#define CD_MASK_MDEFORMVERT					  (1<<CD_MDEFORMVERT)
#define CD_MASK_MEDGE							(1<<CD_MEDGE)
#define CD_MASK_MFACE							(1<<CD_MFACE)
#define CD_MASK_MTFACE						   (1<<CD_MTFACE)
#define CD_MASK_MCOL							 (1<<CD_MCOL)
#define CD_MASK_ORIGINDEX						(1<<CD_ORIGINDEX)
#define CD_MASK_NORMAL						   (1<<CD_NORMAL)
#define CD_MASK_FLAGS							(1<<CD_FLAGS)
#define CD_MASK_PROP_FLT						 (1<<CD_PROP_FLT)
#define CD_MASK_PROP_INT						 (1<<CD_PROP_INT)
#define CD_MASK_PROP_STR						 (1<<CD_PROP_STR)
#define CD_MASK_ORIGSPACE						(1<<CD_ORIGSPACE)
#define CD_MASK_ORCO							 (1<<CD_ORCO)
#define CD_MASK_MTEXPOLY						 (1<<CD_MTEXPOLY)
#define CD_MASK_MLOOPUV						  (1<<CD_MLOOPUV)
#define CD_MASK_MLOOPCOL						 (1<<CD_MLOOPCOL)
#define CD_MASK_TANGENT						  (1<<CD_TANGENT)
#define CD_MASK_MDISPS						   (1<<CD_MDISPS)
#define CD_MASK_WEIGHT_MCOL					  (1<<CD_WEIGHT_MCOL)
#define CD_MASK_WEIGHTPAINT					  (1<<CD_WEIGHTPAINT)
#define CD_FLAG_NOCOPY						   (1<<0)
#define CD_FLAG_NOFREE						   (1<<1)
#define CD_FLAG_TEMPORARY						((1<<2)|CD_FLAG_NOCOPY)
#define MAX_MTFACE							   8
#define MAX_MCOL								 8
#define PAF_MAXMULT							  4
#define PAF_BSPLINE							  2
#define PAF_STATIC							   4
#define PAF_FACE								 8
#define PAF_ANIMATED							 16
#define PAF_UNBORN							   32
#define PAF_OFACE								64
#define PAF_SHOWE								128
#define PAF_TRAND								256
#define PAF_EDISTR							   512
#define PAF_DIED								 2048
#define PAF_TEXTIME							  1
#define EFF_BUILD								0
#define EFF_PARTICLE							 1
#define EFF_WAVE								 2
#define EFF_SELECT							   1
#define PAF_NORMAL							   0
#define PAF_VECT								 1
#define PAF_TEXINT							   0
#define PAF_TEXRGB							   1
#define PAF_TEXGRAD							  2
#define GP_STROKE_3DSPACE						(1<<0)
#define GP_STROKE_2DSPACE						(1<<1)
#define GP_STROKE_2DIMAGE						(1<<2)
#define GP_STROKE_ERASER						 (1<<15)
#define GP_FRAME_PAINT						   (1<<0)
#define GP_FRAME_SELECT						  (1<<1)
#define GP_LAYER_HIDE							(1<<0)
#define GP_LAYER_LOCKED						  (1<<1)
#define GP_LAYER_ACTIVE						  (1<<2)
#define GP_LAYER_DRAWDEBUG					   (1<<3)
#define GP_LAYER_ONIONSKIN					   (1<<4)
#define GP_LAYER_SELECT						  (1<<5)
#define GP_DATA_LMBPLOCK						 (1<<0)
#define GP_DATA_DISPINFO						 (1<<1)
#define GP_DATA_EXPAND						   (1<<2)
#define GP_DATA_EDITPAINT						(1<<3)
#define GP_DATA_VIEWALIGN						(1<<4)
#define MAX_IDPROP_NAME						  32
#define DEFAULT_ALLOC_FOR_NULL_STRINGS		   64
#define IDP_STRING							   0
#define IDP_INT								  1
#define IDP_FLOAT								2
#define IDP_ARRAY								5
#define IDP_GROUP								6
#define IDP_ID								   7
#define IDP_DOUBLE							   8
#define IDP_IDPARRAY							 9
#define IDP_NUMTYPES							 10
#define MAX_ID_NAME							  24
#define PREVIEW_MIPMAPS						  2
#define PREVIEW_MIPMAP_ZERO					  0
#define PREVIEW_MIPMAP_LARGE					 1
#define LIB_LOCAL								0
#define LIB_EXTERN							   1
#define LIB_INDIRECT							 2
#define LIB_TEST								 8
#define LIB_TESTEXT							  9
#define LIB_TESTIND							  10
#define LIB_READ								 16
#define LIB_NEEDLINK							 32
#define LIB_NEW								  256
#define LIB_FAKEUSER							 512
#define LIB_DOIT								 1024
#define LIB_APPEND_TAG						   2048
#define IMA_ANIM_ALWAYS						  1
#define IMA_ANIM_REFRESHED					   2
#define IMA_FIELDS							   1
#define IMA_STD_FIELD							2
#define IMA_DO_PREMUL							4
#define IMA_REFLECT							  16
#define IMA_NOCOLLECT							32
#define IMA_ANTIALI							  64
#define IMA_OLD_PREMUL						   128
#define IMA_TILES								1
#define IMA_TWINANIM							 2
#define IMA_COLCYCLE							 4
#define IMA_MIPMAP_COMPLETE					  8
#define IMA_CLAMP_U							  16
#define IMA_CLAMP_V							  32
#define IMA_RW_MAXTEXT						   512
#define IPOBUTY								  17
#define TOB_IPO								  1
#define TOB_IPODROT							  2
#define IPO_DISPDEGR							 1
#define IPO_DISPBITS							 2
#define IPO_DISPTIME							 3
#define OB_TOTIPO								30
#define OB_TOTNAM								30
#define OB_LOC_X								 1
#define OB_LOC_Y								 2
#define OB_LOC_Z								 3
#define OB_DLOC_X								4
#define OB_DLOC_Y								5
#define OB_DLOC_Z								6
#define OB_ROT_X								 7
#define OB_ROT_Y								 8
#define OB_ROT_Z								 9
#define OB_DROT_X								10
#define OB_DROT_Y								11
#define OB_DROT_Z								12
#define OB_SIZE_X								13
#define OB_SIZE_Y								14
#define OB_SIZE_Z								15
#define OB_DSIZE_X							   16
#define OB_DSIZE_Y							   17
#define OB_DSIZE_Z							   18
#define OB_LAY								   19
#define OB_TIME								  20
#define OB_COL_R								 21
#define OB_COL_G								 22
#define OB_COL_B								 23
#define OB_COL_A								 24
#define OB_PD_FSTR							   25
#define OB_PD_FFALL							  26
#define OB_PD_SDAMP							  27
#define OB_PD_RDAMP							  28
#define OB_PD_PERM							   29
#define OB_PD_FMAXD							  30
#define OB_ROT_DIFF							  100
#define MA_TOTIPO								40
#define MA_TOTNAM								26
#define MA_COL_R								 1
#define MA_COL_G								 2
#define MA_COL_B								 3
#define MA_SPEC_R								4
#define MA_SPEC_G								5
#define MA_SPEC_B								6
#define MA_MIR_R								 7
#define MA_MIR_G								 8
#define MA_MIR_B								 9
#define MA_REF								   10
#define MA_ALPHA								 11
#define MA_EMIT								  12
#define MA_AMB								   13
#define MA_SPEC								  14
#define MA_HARD								  15
#define MA_SPTR								  16
#define MA_IOR								   17
#define MA_MODE								  18
#define MA_HASIZE								19
#define MA_TRANSLU							   20
#define MA_RAYM								  21
#define MA_FRESMIR							   22
#define MA_FRESMIRI							  23
#define MA_FRESTRA							   24
#define MA_FRESTRAI							  25
#define MA_ADD								   26
#define MA_MAP1								  (1<<5)
#define MA_MAP2								  (1<<6)
#define MA_MAP3								  (1<<7)
#define MA_MAP4								  (1<<8)
#define MA_MAP5								  (1<<9)
#define MA_MAP6								  (1<<10)
#define MA_MAP7								  (1<<11)
#define MA_MAP8								  (1<<12)
#define MA_MAP9								  (1<<13)
#define MA_MAP10								 (1<<14)
#define MA_MAP11								 (1<<15)
#define MA_MAP12								 (1<<16)
#define MA_MAP13								 (1<<17)
#define MA_MAP14								 (1<<18)
#define MA_MAP15								 (1<<19)
#define MA_MAP16								 (1<<20)
#define MA_MAP17								 (1<<21)
#define MA_MAP18								 (1<<22)
#define TEX_TOTNAM							   14
#define MAP_OFS_X								1
#define MAP_OFS_Y								2
#define MAP_OFS_Z								3
#define MAP_SIZE_X							   4
#define MAP_SIZE_Y							   5
#define MAP_SIZE_Z							   6
#define MAP_R									7
#define MAP_G									8
#define MAP_B									9
#define MAP_DVAR								 10
#define MAP_COLF								 11
#define MAP_NORF								 12
#define MAP_VARF								 13
#define MAP_DISP								 14
#define TE_TOTIPO								26
#define TE_TOTNAM								26
#define TE_NSIZE								 1
#define TE_NDEPTH								2
#define TE_NTYPE								 3
#define TE_TURB								  4
#define TE_VNW1								  5
#define TE_VNW2								  6
#define TE_VNW3								  7
#define TE_VNW4								  8
#define TE_VNMEXP								9
#define TE_VN_DISTM							  10
#define TE_VN_COLT							   11
#define TE_ISCA								  12
#define TE_DISTA								 13
#define TE_MG_TYP								14
#define TE_MGH								   15
#define TE_MG_LAC								16
#define TE_MG_OCT								17
#define TE_MG_OFF								18
#define TE_MG_GAIN							   19
#define TE_N_BAS1								20
#define TE_N_BAS2								21
#define TE_COL_R								 22
#define TE_COL_G								 23
#define TE_COL_B								 24
#define TE_BRIGHT								25
#define TE_CONTRA								26
#define SEQ_TOTIPO							   1
#define SEQ_TOTNAM							   1
#define SEQ_FAC1								 1
#define CU_TOTIPO								1
#define CU_TOTNAM								1
#define CU_SPEED								 1
#define KEY_TOTIPO							   64
#define KEY_TOTNAM							   64
#define KEY_SPEED								0
#define KEY_NR								   1
#define WO_TOTIPO								29
#define WO_TOTNAM								16
#define WO_HOR_R								 1
#define WO_HOR_G								 2
#define WO_HOR_B								 3
#define WO_ZEN_R								 4
#define WO_ZEN_G								 5
#define WO_ZEN_B								 6
#define WO_EXPOS								 7
#define WO_MISI								  8
#define WO_MISTDI								9
#define WO_MISTSTA							   10
#define WO_MISTHI								11
#define WO_STAR_R								12
#define WO_STAR_G								13
#define WO_STAR_B								14
#define WO_STARDIST							  15
#define WO_STARSIZE							  16
#define LA_TOTIPO								21
#define LA_TOTNAM								10
#define LA_ENERGY								1
#define LA_COL_R								 2
#define LA_COL_G								 3
#define LA_COL_B								 4
#define LA_DIST								  5
#define LA_SPOTSI								6
#define LA_SPOTBL								7
#define LA_QUAD1								 8
#define LA_QUAD2								 9
#define LA_HALOINT							   10
#define CAM_TOTIPO							   7
#define CAM_TOTNAM							   7
#define CAM_LENS								 1
#define CAM_STA								  2
#define CAM_END								  3
#define CAM_YF_APERT							 4
#define CAM_YF_FDIST							 5
#define CAM_SHIFT_X							  6
#define CAM_SHIFT_Y							  7
#define SND_TOTIPO							   4
#define SND_TOTNAM							   4
#define SND_VOLUME							   1
#define SND_PITCH								2
#define SND_PANNING							  3
#define SND_ATTEN								4
#define AC_TOTIPO								13
#define AC_TOTNAM								13
#define AC_LOC_X								 1
#define AC_LOC_Y								 2
#define AC_LOC_Z								 3
#define AC_SIZE_X								13
#define AC_SIZE_Y								14
#define AC_SIZE_Z								15
#define AC_EUL_X								 16
#define AC_EUL_Y								 17
#define AC_EUL_Z								 18
#define AC_QUAT_W								25
#define AC_QUAT_X								26
#define AC_QUAT_Y								27
#define AC_QUAT_Z								28
#define CO_TOTIPO								2
#define CO_TOTNAM								2
#define CO_ENFORCE							   1
#define CO_HEADTAIL							  2
#define FLUIDSIM_TOTIPO						  13
#define FLUIDSIM_TOTNAM						  13
#define FLUIDSIM_VISC							1
#define FLUIDSIM_TIME							2
#define FLUIDSIM_GRAV_X						  3
#define FLUIDSIM_GRAV_Y						  4
#define FLUIDSIM_GRAV_Z						  5
#define FLUIDSIM_VEL_X						   6
#define FLUIDSIM_VEL_Y						   7
#define FLUIDSIM_VEL_Z						   8
#define FLUIDSIM_ACTIVE						  9
#define FLUIDSIM_ATTR_FORCE_STR				  10
#define FLUIDSIM_ATTR_FORCE_RADIUS			   11
#define FLUIDSIM_VEL_FORCE_STR				   12
#define FLUIDSIM_VEL_FORCE_RADIUS				13
#define PART_TOTIPO							  25
#define PART_TOTNAM							  25
#define PART_EMIT_FREQ						   1
#define PART_EMIT_LIFE						   2
#define PART_EMIT_VEL							3
#define PART_EMIT_AVE							4
#define PART_EMIT_SIZE						   5
#define PART_AVE								 6
#define PART_SIZE								7
#define PART_DRAG								8
#define PART_BROWN							   9
#define PART_DAMP								10
#define PART_LENGTH							  11
#define PART_CLUMP							   12
#define PART_GRAV_X							  13
#define PART_GRAV_Y							  14
#define PART_GRAV_Z							  15
#define PART_KINK_AMP							16
#define PART_KINK_FREQ						   17
#define PART_KINK_SHAPE						  18
#define PART_BB_TILT							 19
#define PART_PD_FSTR							 20
#define PART_PD_FFALL							21
#define PART_PD_FMAXD							22
#define PART_PD2_FSTR							23
#define PART_PD2_FFALL						   24
#define PART_PD2_FMAXD						   25
#define IPO_CHAR								 0
#define IPO_SHORT								1
#define IPO_INT								  2
#define IPO_LONG								 3
#define IPO_FLOAT								4
#define IPO_DOUBLE							   5
#define IPO_FLOAT_DEGR						   6
#define IPO_BEZTRIPLE							100
#define IPO_BPOINT							   101
#define IPO_BITS								 16
#define IPO_CHAR_BIT							 16
#define IPO_SHORT_BIT							17
#define IPO_INT_BIT							  18
#define IPO_CONST								0
#define IPO_LIN								  1
#define IPO_BEZ								  2
#define IPO_MIXED								3
#define IPO_HORIZ								0
#define IPO_DIR								  1
#define IPO_CYCL								 2
#define IPO_CYCLX								3
#define IPO_VISIBLE							  1
#define IPO_SELECT							   2
#define IPO_EDIT								 4
#define IPO_LOCK								 8
#define IPO_AUTO_HORIZ						   16
#define IPO_ACTIVE							   32
#define IPO_PROTECT							  64
#define IPO_MUTE								 128
#define DRIVER_NAME_OFFS						 32
#define IPO_DRIVER_TYPE_NORMAL				   0
#define IPO_DRIVER_TYPE_PYTHON				   1
#define IPO_DRIVER_FLAG_INVALID				  (1<<0)
#define KEY_NORMAL							   0
#define KEY_RELATIVE							 1
#define KEY_LINEAR							   0
#define KEY_CARDINAL							 1
#define KEY_BSPLINE							  2
#define KEYBLOCK_MUTE							1
#define KEYBLOCK_DS_EXPAND					   2
#define MAX_MTEX								 18
#define LA_DS_EXPAND							 1
#define LA_LOCAL								 0
#define LA_SUN								   1
#define LA_SPOT								  2
#define LA_HEMI								  3
#define LA_AREA								  4
#define LA_YF_PHOTON							 5
#define LA_SHAD_BUF							  1
#define LA_HALO								  2
#define LA_LAYER								 4
#define LA_QUAD								  8
#define LA_NEG								   16
#define LA_ONLYSHADOW							32
#define LA_SPHERE								64
#define LA_SQUARE								128
#define LA_TEXTURE							   256
#define LA_OSATEX								512
#define LA_DEEP_SHADOW						   1024
#define LA_NO_DIFF							   2048
#define LA_NO_SPEC							   4096
#define LA_SHAD_RAY							  8192
#define LA_YF_SOFT							   16384
#define LA_LAYER_SHADOW						  32768
#define LA_SHAD_TEX							  (1<<16)
#define LA_LAYER_SHADOW_BOTH					 0
#define LA_LAYER_SHADOW_CAST					 1
#define LA_LAYER_SHADOW_RECEIVE				  2
#define LA_SUN_EFFECT_SKY						1
#define LA_SUN_EFFECT_AP						 2
#define LA_FALLOFF_CONSTANT					  0
#define LA_FALLOFF_INVLINEAR					 1
#define LA_FALLOFF_INVSQUARE					 2
#define LA_FALLOFF_CURVE						 3
#define LA_FALLOFF_SLIDERS					   4
#define LA_SHADBUF_REGULAR					   0
#define LA_SHADBUF_IRREGULAR					 1
#define LA_SHADBUF_HALFWAY					   2
#define LA_SHADBUF_AUTO_START					1
#define LA_SHADBUF_AUTO_END					  2
#define LA_SHADBUF_BOX						   0
#define LA_SHADBUF_TENT						  1
#define LA_SHADBUF_GAUSS						 2
#define LA_AREA_SQUARE						   0
#define LA_AREA_RECT							 1
#define LA_AREA_CUBE							 2
#define LA_AREA_BOX							  3
#define LA_SAMP_CONSTANT						 0
#define LA_SAMP_HALTON						   1
#define LA_SAMP_HAMMERSLEY					   2
#define LA_SAMP_ROUND							1
#define LA_SAMP_UMBRA							2
#define LA_SAMP_DITHER						   4
#define LA_SAMP_JITTER						   8
#define LAMAP_COL								1
#define LAMAP_SHAD							   2
#define LT_GRID								  1
#define LT_OUTSIDE							   2
#define MAX_MTEX								 18
#define MAXMAT								   32767
#define MA_TYPE_SURFACE						  0
#define MA_TYPE_HALO							 1
#define MA_TYPE_VOLUME						   2
#define MA_TYPE_WIRE							 3
#define MA_IS_USED							   1
#define MA_DS_EXPAND							 2
#define MA_TRACEBLE							  1
#define MA_SHADOW								2
#define MA_SHLESS								4
#define MA_WIRE								  8
#define MA_VERTEXCOL							 16
#define MA_HALO_SOFT							 16
#define MA_HALO								  32
#define MA_ZTRA								  64
#define MA_VERTEXCOLP							128
#define MA_ZINV								  256
#define MA_HALO_RINGS							256
#define MA_ENV								   512
#define MA_HALO_LINES							512
#define MA_ONLYSHADOW							1024
#define MA_HALO_XALPHA						   1024
#define MA_STAR								  0x800
#define MA_FACETEXTURE						   0x800
#define MA_HALOTEX							   0x1000
#define MA_HALOPUNO							  0x2000
#define MA_ONLYCAST							  0x2000
#define MA_NOMIST								0x4000
#define MA_HALO_SHADE							0x4000
#define MA_HALO_FLARE							0x8000
#define MA_RADIO								 0x10000
#define MA_RAYTRANSP							 0x20000
#define MA_RAYMIRROR							 0x40000
#define MA_SHADOW_TRA							0x80000
#define MA_RAMP_COL							  0x100000
#define MA_RAMP_SPEC							 0x200000
#define MA_RAYBIAS							   0x400000
#define MA_FULL_OSA							  0x800000
#define MA_TANGENT_STR						   0x1000000
#define MA_SHADBUF							   0x2000000
#define MA_TANGENT_V							 0x4000000
#define MA_NORMAP_TANG						   0x8000000
#define MA_GROUP_NOLAY						   0x10000000
#define MA_FACETEXTURE_ALPHA					 0x20000000
#define MA_STR_B_UNITS						   0x40000000
#define MA_STR_SURFDIFF						  0x80000000
#define MA_MODE_MASK							 0x6fffffff
#define MA_RAYMIR_FADETOSKY					  0
#define MA_RAYMIR_FADETOMAT					  1
#define MA_CUBIC								 1
#define MA_OBCOLOR							   2
#define MA_DIFF_LAMBERT						  0
#define MA_DIFF_ORENNAYAR						1
#define MA_DIFF_TOON							 2
#define MA_DIFF_MINNAERT						 3
#define MA_DIFF_FRESNEL						  4
#define MA_SPEC_COOKTORR						 0
#define MA_SPEC_PHONG							1
#define MA_SPEC_BLINN							2
#define MA_SPEC_TOON							 3
#define MA_SPEC_WARDISO						  4
#define MA_DRAW_DYNABUTS						 1
#define MA_FH_NOR								2
#define MA_RAMP_IN_SHADER						0
#define MA_RAMP_IN_ENERGY						1
#define MA_RAMP_IN_NOR						   2
#define MA_RAMP_IN_RESULT						3
#define MA_RAMP_BLEND							0
#define MA_RAMP_ADD							  1
#define MA_RAMP_MULT							 2
#define MA_RAMP_SUB							  3
#define MA_RAMP_SCREEN						   4
#define MA_RAMP_DIV							  5
#define MA_RAMP_DIFF							 6
#define MA_RAMP_DARK							 7
#define MA_RAMP_LIGHT							8
#define MA_RAMP_OVERLAY						  9
#define MA_RAMP_DODGE							10
#define MA_RAMP_BURN							 11
#define MA_RAMP_HUE							  12
#define MA_RAMP_SAT							  13
#define MA_RAMP_VAL							  14
#define MA_RAMP_COLOR							15
#define TEXCO_ORCO							   1
#define TEXCO_REFL							   2
#define TEXCO_NORM							   4
#define TEXCO_GLOB							   8
#define TEXCO_UV								 16
#define TEXCO_OBJECT							 32
#define TEXCO_LAVECTOR						   64
#define TEXCO_VIEW							   128
#define TEXCO_STICKY							 256
#define TEXCO_OSA								512
#define TEXCO_WINDOW							 1024
#define NEED_UV								  2048
#define TEXCO_TANGENT							4096
#define TEXCO_STRAND							 8192
#define TEXCO_STRESS							 16384
#define TEXCO_SPEED							  32768
#define MAP_COL								  1
#define MAP_NORM								 2
#define MAP_COLSPEC							  4
#define MAP_COLMIR							   8
#define MAP_VARS								 (0xFFF0)
#define MAP_REF								  16
#define MAP_SPEC								 32
#define MAP_EMIT								 64
#define MAP_ALPHA								128
#define MAP_HAR								  256
#define MAP_RAYMIRR							  512
#define MAP_TRANSLU							  1024
#define MAP_AMB								  2048
#define MAP_DISPLACE							 4096
#define MAP_WARP								 8192
#define MAP_LAYER								16384
#define MAP_PA_INIT							  31
#define MAP_PA_TIME							  1
#define MAP_PA_LIFE							  2
#define MAP_PA_DENS							  4
#define MAP_PA_SIZE							  8
#define MAP_PA_LENGTH							16
#define MAP_PA_IVEL							  32
#define MAP_PA_PVEL							  64
#define MAP_PA_CACHE							 912
#define MAP_PA_CLUMP							 128
#define MAP_PA_KINK							  256
#define MAP_PA_ROUGH							 512
#define MA_FLAT								  0
#define MA_SPHERE								1
#define MA_CUBE								  2
#define MA_MONKEY								3
#define MA_SPHERE_A							  4
#define MA_TEXTURE							   5
#define MA_LAMP								  6
#define MA_SKY								   7
#define MA_HAIR								  10
#define MA_ATMOS								 11
#define MA_DARK								  1
#define MA_DIFF_SSS							  1
#define ME_SPHERETEST							2
#define ME_SPHERETEMP							4
#define ME_HIDE								  16
#define ME_VERT_MERGED						   (1<<6)
#define ME_EDGEDRAW							  (1<<1)
#define ME_SEAM								  (1<<2)
#define ME_FGON								  (1<<3)
#define ME_EDGERENDER							(1<<5)
#define ME_LOOSEEDGE							 (1<<7)
#define ME_SEAM_LAST							 (1<<8)
#define ME_SHARP								 (1<<9)
#define ME_FLIPV1								1
#define ME_FLIPV2								2
#define ME_FLIPV3								4
#define ME_FLIPV4								8
#define ME_PROJXY								16
#define ME_PROJXZ								32
#define ME_PROJYZ								64
#define ME_V1V2								  1
#define ME_V2V3								  2
#define ME_V3V1								  4
#define ME_V3V4								  4
#define ME_V4V1								  8
#define ME_SMOOTH								1
#define ME_FACE_SEL							  2
#define ME_VSEl								  0
#define ME_ESEl								  1
#define ME_FSEL								  2
#define TF_SELECT								1
#define TF_ACTIVE								2
#define TF_SEL1								  4
#define TF_SEL2								  8
#define TF_SEL3								  16
#define TF_SEL4								  32
#define TF_HIDE								  64
#define TF_DYNAMIC							   1
#define TF_ALPHASORT							 2
#define TF_TEX								   4
#define TF_SHAREDVERT							8
#define TF_LIGHT								 16
#define TF_SHAREDCOL							 64
#define TF_TILES								 128
#define TF_BILLBOARD							 256
#define TF_TWOSIDE							   512
#define TF_INVISIBLE							 1024
#define TF_OBCOL								 2048
#define TF_BILLBOARD2							4096
#define TF_SHADOW								8192
#define TF_BMFONT								16384
#define TF_SOLID								 0
#define TF_ADD								   1
#define TF_ALPHA								 2
#define TF_CLIP								  4
#define TF_SUB								   3
#define TF_DEPRECATED1						   1
#define TF_DEPRECATED2						   2
#define TF_DEPRECATED3						   4
#define TF_DEPRECATED4						   8
#define TF_PIN1								  16
#define TF_PIN2								  32
#define TF_PIN3								  64
#define TF_PIN4								  128
#define AUTOSPACE								1
#define ME_ISDONE								1
#define ME_NOPUNOFLIP							2
#define ME_TWOSIDED							  4
#define ME_UVEFFECT							  8
#define ME_VCOLEFFECT							16
#define ME_AUTOSMOOTH							32
#define ME_SMESH								 64
#define ME_SUBSURF							   128
#define ME_OPT_EDGES							 256
#define ME_DRAWEDGES							 (1<<0)
#define ME_DRAWFACES							 (1<<1)
#define ME_DRAWNORMALS						   (1<<2)
#define ME_DRAW_VNORMALS						 (1<<3)
#define ME_ALLEDGES							  (1<<4)
#define ME_HIDDENEDGES						   (1<<5)
#define ME_DRAWCREASES						   (1<<6)
#define ME_DRAWSEAMS							 (1<<7)
#define ME_DRAWSHARP							 (1<<8)
#define ME_DRAWBWEIGHTS						  (1<<8)
#define ME_DRAW_EDGELEN						  (1<<10)
#define ME_DRAW_FACEAREA						 (1<<11)
#define ME_DRAW_EDGEANG						  (1<<12)
#define G_DRAWEDGES							  (1<<18)
#define G_DRAWFACES							  (1<<
#define G_DRAWNORMALS							(1<<
#define G_DRAW_VNORMALS						  (1<<14)
#define G_ALLEDGES							   (1<<11)
#define G_HIDDENEDGES							(1<<21)
#define G_DRAWCREASES							(1<<19)
#define G_DRAWSEAMS							  (1<<20)
#define G_DRAWSHARP							  (1<<28)
#define G_DRAWBWEIGHTS						   (1<<31)
#define G_DRAW_EDGELEN						   (1<<22)
#define G_DRAW_FACEAREA						  (1<<23)
#define G_DRAW_EDGEANG						   (1<<24)
#define ME_CC_SUBSURF							0
#define ME_SIMPLE_SUBSURF						1
#define MESH_MAX_VERTS						   2000000000L
#define MB_AUTOSPACE							 1
#define MB_UPDATE_ALWAYS						 0
#define MB_UPDATE_HALFRES						1
#define MB_UPDATE_FAST						   2
#define MB_UPDATE_NEVER						  3
#define MB_BALL								  0
#define MB_TUBEX								 1
#define MB_TUBEY								 2
#define MB_TUBEZ								 3
#define MB_TUBE								  4
#define MB_PLANE								 5
#define MB_ELIPSOID							  6
#define MB_CUBE								  7
#define MB_NEGATIVE							  2
#define MB_HIDE								  8
#define MB_SCALE_RAD							 16
#define MODSTACK_DEBUG						   1
#define MOD_CURVE_POSX						   1
#define MOD_CURVE_POSY						   2
#define MOD_CURVE_POSZ						   3
#define MOD_CURVE_NEGX						   4
#define MOD_CURVE_NEGY						   5
#define MOD_CURVE_NEGZ						   6
#define MOD_MASK_MODE_VGROUP					 0
#define MOD_MASK_MODE_ARM						1
#define MOD_MASK_INV							 (1<<0)
#define MOD_ARR_FIXEDCOUNT					   0
#define MOD_ARR_FITLENGTH						1
#define MOD_ARR_FITCURVE						 2
#define MOD_ARR_OFF_CONST						1<<0
#define MOD_ARR_OFF_RELATIVE					 1<<1
#define MOD_ARR_OFF_OBJ						  1<<2
#define MOD_ARR_MERGE							1<<0
#define MOD_ARR_MERGEFINAL					   1<<1
#define MOD_MIR_CLIPPING						 1<<0
#define MOD_MIR_MIRROR_U						 1<<1
#define MOD_MIR_MIRROR_V						 1<<2
#define MOD_MIR_AXIS_X						   1<<3
#define MOD_MIR_AXIS_Y						   1<<4
#define MOD_MIR_AXIS_Z						   1<<5
#define MOD_MIR_VGROUP						   1<<6
#define MOD_EDGESPLIT_FROMANGLE				  1<<1
#define MOD_EDGESPLIT_FROMFLAG				   1<<2
#define MOD_UVPROJECT_MAXPROJECTORS			  10
#define MOD_UVPROJECT_OVERRIDEIMAGE			  1<<0
#define MOD_SMOOTH_X							 (1<<1)
#define MOD_SMOOTH_Y							 (1<<2)
#define MOD_SMOOTH_Z							 (1<<3)
#define MOD_CAST_X							   (1<<1)
#define MOD_CAST_Y							   (1<<2)
#define MOD_CAST_Z							   (1<<3)
#define MOD_CAST_USE_OB_TRANSFORM				(1<<4)
#define MOD_CAST_SIZE_FROM_RADIUS				(1<<5)
#define MOD_CAST_TYPE_SPHERE					 0
#define MOD_CAST_TYPE_CYLINDER				   1
#define MOD_CAST_TYPE_CUBOID					 2
#define MOD_WAVE_X							   1<<1
#define MOD_WAVE_Y							   1<<2
#define MOD_WAVE_CYCL							1<<3
#define MOD_WAVE_NORM							1<<4
#define MOD_WAVE_NORM_X						  1<<5
#define MOD_WAVE_NORM_Y						  1<<6
#define MOD_WAVE_NORM_Z						  1<<7
#define MOD_MDEF_INVERT_VGROUP				   (1<<0)
#define MOD_MDEF_DYNAMIC_BIND					(1<<1)
#define MOD_SHRINKWRAP_NEAREST_SURFACE		   0
#define MOD_SHRINKWRAP_PROJECT				   1
#define MOD_SHRINKWRAP_NEAREST_VERTEX			2
#define MOD_SHRINKWRAP_PROJECT_ALLOW_POS_DIR	 (1<<0)
#define MOD_SHRINKWRAP_PROJECT_ALLOW_NEG_DIR	 (1<<1)
#define MOD_SHRINKWRAP_CULL_TARGET_FRONTFACE	 (1<<3)
#define MOD_SHRINKWRAP_CULL_TARGET_BACKFACE	  (1<<4)
#define MOD_SHRINKWRAP_KEEP_ABOVE_SURFACE		(1<<5)
#define MOD_SHRINKWRAP_PROJECT_OVER_X_AXIS	   (1<<0)
#define MOD_SHRINKWRAP_PROJECT_OVER_Y_AXIS	   (1<<1)
#define MOD_SHRINKWRAP_PROJECT_OVER_Z_AXIS	   (1<<2)
#define MOD_SHRINKWRAP_PROJECT_OVER_NORMAL	   0
#define MOD_SIMPLEDEFORM_MODE_TWIST			  1
#define MOD_SIMPLEDEFORM_MODE_BEND			   2
#define MOD_SIMPLEDEFORM_MODE_TAPER			  3
#define MOD_SIMPLEDEFORM_MODE_STRETCH			4
#define MOD_SIMPLEDEFORM_LOCK_AXIS_X			 (1<<0)
#define MOD_SIMPLEDEFORM_LOCK_AXIS_Y			 (1<<1)
#define MOD_SIMPLEDEFORM_ORIGIN_LOCAL			(1<<0)
#define ACTSTRIP_MOD_DEFORM					  0
#define ACTSTRIP_MOD_NOISE					   1
#define ACTSTRIP_MOD_OOMPH					   2
#define ACTSTRIPMODE_BLEND					   0
#define ACTSTRIPMODE_ADD						 1
#define NODE_MAXSTR							  32
#define NS_OSA_VECTORS						   1
#define NS_OSA_VALUES							2
#define SOCK_VALUE							   0
#define SOCK_VECTOR							  1
#define SOCK_RGBA								2
#define SOCK_HIDDEN							  2
#define SOCK_IN_USE							  4
#define SOCK_UNAVAIL							 8
#define SOCK_SEL								 16
#define NODE_SELECT							  1
#define NODE_OPTIONS							 2
#define NODE_PREVIEW							 4
#define NODE_HIDDEN							  8
#define NODE_ACTIVE							  16
#define NODE_ACTIVE_ID						   32
#define NODE_DO_OUTPUT						   64
#define NODE_GROUP_EDIT						  128
#define NODE_TEST								256
#define NODE_MUTED							   512
#define NTREE_SHADER							 0
#define NTREE_COMPOSIT						   1
#define NTREE_TEXTURE							2
#define NTREE_TYPE_INIT						  1
#define NTREE_EXEC_INIT						  2
#define OB_FLUIDSIM_ENABLE					   1
#define OB_FLUIDSIM_DOMAIN					   2
#define OB_FLUIDSIM_FLUID						4
#define OB_FLUIDSIM_OBSTACLE					 8
#define OB_FLUIDSIM_INFLOW					   16
#define OB_FLUIDSIM_OUTFLOW					  32
#define OB_FLUIDSIM_PARTICLE					 64
#define OB_FLUIDSIM_CONTROL					  128
#define OB_TYPEFLAG_START						7
#define OB_FSGEO_THIN							(1<<(OB_TYPEFLAG_START+1))
#define OB_FSBND_NOSLIP						  (1<<(OB_TYPEFLAG_START+2))
#define OB_FSBND_PARTSLIP						(1<<(OB_TYPEFLAG_START+3))
#define OB_FSBND_FREESLIP						(1<<(OB_TYPEFLAG_START+4))
#define OB_FSINFLOW_LOCALCOORD				   (1<<(OB_TYPEFLAG_START+5))
#define OB_FSDOM_GEOM							1
#define OB_FSDOM_PREVIEW						 2
#define OB_FSDOM_FINAL						   3
#define OB_FSPART_BUBBLE						 (1<<1)
#define OB_FSPART_DROP						   (1<<2)
#define OB_FSPART_NEWPART						(1<<3)
#define OB_FSPART_FLOAT						  (1<<4)
#define OB_FSPART_TRACER						 (1<<5)
#define OB_FLUIDSIM_REVERSE					  (1<<0)
#define OB_BSB_SHAPE_MATCHING					2
#define OB_BSB_UNUSED							4
#define OB_BSB_BENDING_CONSTRAINTS			   8
#define OB_BSB_AERO_VPOINT					   16
#define OB_BSB_AERO_VTWOSIDE					 32
#define OB_BSB_COL_SDF_RS						2
#define OB_BSB_COL_CL_RS						 4
#define OB_BSB_COL_CL_SS						 8
#define OB_BSB_COL_VF_SS						 16
#define PFIELD_FORCE							 1
#define PFIELD_VORTEX							2
#define PFIELD_MAGNET							3
#define PFIELD_WIND							  4
#define PFIELD_GUIDE							 5
#define PFIELD_TEXTURE						   6
#define PFIELD_HARMONIC						  7
#define PFIELD_CHARGE							8
#define PFIELD_LENNARDJ						  9
#define PFIELD_BOID							  10
#define PFIELD_USEMAX							1
#define PDEFLE_DEFORM							2
#define PFIELD_GUIDE_PATH_ADD					4
#define PFIELD_PLANAR							8
#define PDEFLE_KILL_PART						 16
#define PFIELD_POSZ							  32
#define PFIELD_TEX_OBJECT						64
#define PFIELD_TEX_2D							128
#define PFIELD_USEMIN							256
#define PFIELD_USEMAXR						   512
#define PFIELD_USEMINR						   1024
#define PFIELD_TEX_ROOTCO						2048
#define PFIELD_SURFACE						   4096
#define PFIELD_FALL_SPHERE					   0
#define PFIELD_FALL_TUBE						 1
#define PFIELD_FALL_CONE						 2
#define PFIELD_TEX_RGB						   0
#define PFIELD_TEX_GRAD						  1
#define PFIELD_TEX_CURL						  2
#define PTCACHE_BAKED							1
#define PTCACHE_OUTDATED						 2
#define PTCACHE_SIMULATION_VALID				 4
#define PTCACHE_BAKING						   8
#define PTCACHE_BAKE_EDIT						16
#define PTCACHE_BAKE_EDIT_ACTIVE				 32
#define PTCACHE_DISK_CACHE					   64
#define PTCACHE_QUICK_CACHE					  128
#define PTCACHE_FRAMES_SKIPPED				   256
#define PTCACHE_EXTERNAL						 512
#define PTCACHE_REDO_NEEDED					  258
#define OB_SB_ENABLE							 1
#define OB_SB_GOAL							   2
#define OB_SB_EDGES							  4
#define OB_SB_QUADS							  8
#define OB_SB_POSTDEF							16
#define OB_SB_SELF							   512
#define OB_SB_FACECOLL						   1024
#define OB_SB_EDGECOLL						   2048
#define OB_SB_COLLFINAL						  4096
#define OB_SB_BIG_UI							 8192
#define OB_SB_AERO_ANGLE						 16384
#define SBSO_MONITOR							 1
#define SBSO_OLDERR							  2
#define SBC_MODE_MANUAL						  0
#define SBC_MODE_AVG							 1
#define SBC_MODE_MIN							 2
#define SBC_MODE_MAX							 3
#define SBC_MODE_AVGMINMAX					   4
#define OB_BB_DISABLED						   1
#define SELECT								   1
#define OB_EMPTY								 0
#define OB_MESH								  1
#define OB_CURVE								 2
#define OB_SURF								  3
#define OB_FONT								  4
#define OB_MBALL								 5
#define OB_LAMP								  10
#define OB_CAMERA								11
#define OB_WAVE								  21
#define OB_LATTICE							   22
#define OB_ARMATURE							  25
#define PARTYPE								  15
#define PAROBJECT								0
#define PARCURVE								 1
#define PARKEY								   2
#define PARSKEL								  4
#define PARVERT1								 5
#define PARVERT3								 6
#define PARBONE								  7
#define PARSLOW								  16
#define OB_OFFS_LOCAL							1
#define OB_QUAT								  2
#define OB_NEG_SCALE							 4
#define OB_DUPLI								 (8+16+256+512+2048)
#define OB_DUPLIFRAMES						   8
#define OB_DUPLIVERTS							16
#define OB_DUPLIROT							  32
#define OB_DUPLINOSPEED						  64
#define OB_POWERTRACK							128
#define OB_DUPLIGROUP							256
#define OB_DUPLIFACES							512
#define OB_DUPLIFACES_SCALE					  1024
#define OB_DUPLIPARTS							2048
#define OB_RENDER_DUPLI						  4096
#define OB_DRAWKEY							   1
#define OB_DRAWKEYSEL							2
#define OB_OFFS_OB							   4
#define OB_OFFS_MAT							  8
#define OB_OFFS_VKEY							 16
#define OB_OFFS_PATH							 32
#define OB_OFFS_PARENT						   64
#define OB_OFFS_PARTICLE						 128
#define OB_ACTION_OB							 256
#define OB_ACTION_KEY							512
#define OB_DISABLE_PATH						  1024
#define OB_OFFS_PARENTADD						2048
#define OB_POSX								  0
#define OB_POSY								  1
#define OB_POSZ								  2
#define OB_NEGX								  3
#define OB_NEGY								  4
#define OB_NEGZ								  5
#define OB_BOUNDBOX							  1
#define OB_WIRE								  2
#define OB_SOLID								 3
#define OB_SHADED								4
#define OB_TEXTURE							   5
#define OB_AXIS								  2
#define OB_TEXSPACE							  4
#define OB_DRAWNAME							  8
#define OB_DRAWIMAGE							 16
#define OB_DRAWWIRE							  32
#define OB_DRAWXRAY							  64
#define OB_DRAWTRANSP							128
#define OB_ARROWS								1
#define OB_PLAINAXES							 2
#define OB_CIRCLE								3
#define OB_SINGLE_ARROW						  4
#define OB_CUBE								  5
#define OB_EMPTY_SPHERE						  6
#define OB_EMPTY_CONE							7
#define OB_BOUND_BOX							 0
#define OB_BOUND_SPHERE						  1
#define OB_BOUND_CYLINDER						2
#define OB_BOUND_CONE							3
#define OB_BOUND_POLYH						   4
#define OB_BOUND_POLYT						   5
#define OB_BOUND_DYN_MESH						6
#define BA_WAS_SEL							   2
#define BA_HAS_RECALC_OB						 4
#define BA_HAS_RECALC_DATA					   8
#define BA_DO_IPO								32
#define BA_FROMSET							   128
#define BA_TRANSFORM_CHILD					   256
#define BA_DESELECT							  0
#define BA_SELECT								1
#define OB_FROMDUPLI							 512
#define OB_DONE								  1024
#define OB_RADIO								 2048
#define OB_FROMGROUP							 4096
#define OB_POSEMODE							  8192
#define OB_RECALC_OB							 1
#define OB_RECALC_DATA						   2
#define OB_RECALC_TIME						   4
#define OB_RECALC								7
#define OB_DYNAMIC							   1
#define OB_CHILD								 2
#define OB_ACTOR								 4
#define OB_INERTIA_LOCK_X						8
#define OB_INERTIA_LOCK_Y						16
#define OB_INERTIA_LOCK_Z						32
#define OB_DO_FH								 64
#define OB_ROT_FH								128
#define OB_ANISOTROPIC_FRICTION				  256
#define OB_GHOST								 512
#define OB_RIGID_BODY							1024
#define OB_BOUNDS								2048
#define OB_COLLISION_RESPONSE					4096
#define OB_SECTOR								8192
#define OB_PROP								  16384
#define OB_MAINACTOR							 32768
#define OB_COLLISION							 65536
#define OB_SOFT_BODY							 0x20000
#define OB_OCCLUDER							  0x40000
#define OB_SENSOR								0x80000
#define OB_NEVER_DO_ACTIVITY_CULLING			 1
#define OB_LOCK_RIGID_BODY_X_AXIS				4
#define OB_LOCK_RIGID_BODY_Y_AXIS				8
#define OB_LOCK_RIGID_BODY_Z_AXIS				16
#define OB_LOCK_RIGID_BODY_X_ROT_AXIS			32
#define OB_LOCK_RIGID_BODY_Y_ROT_AXIS			64
#define OB_LOCK_RIGID_BODY_Z_ROT_AXIS			128
#define OB_LIFE								  (OB_PROP|OB_DYNAMIC|OB_ACTOR|OB_MAINACTOR|OB_CHILD)
#define OB_BODY_TYPE_NO_COLLISION				0
#define OB_BODY_TYPE_STATIC					  1
#define OB_BODY_TYPE_DYNAMIC					 2
#define OB_BODY_TYPE_RIGID					   3
#define OB_BODY_TYPE_SOFT						4
#define OB_BODY_TYPE_OCCLUDER					5
#define OB_BODY_TYPE_SENSOR					  6
#define OB_VIS_SENS							  1
#define OB_VIS_CONT							  2
#define OB_VIS_ACT							   4
#define OB_SHOWSENS							  64
#define OB_SHOWACT							   128
#define OB_ADDSENS							   256
#define OB_ADDCONT							   512
#define OB_ADDACT								1024
#define OB_SHOWCONT							  2048
#define OB_SETSTBIT							  4096
#define OB_INITSTBIT							 8192
#define OB_DEBUGSTATE							16384
#define OB_RESTRICT_VIEW						 1
#define OB_RESTRICT_SELECT					   2
#define OB_RESTRICT_RENDER					   4
#define OB_SHAPE_LOCK							1
#define OB_SHAPE_TEMPLOCK						2
#define OB_NLA_OVERRIDE						  (1<<0)
#define OB_NLA_COLLAPSED						 (1<<1)
#define OB_ADS_COLLAPSED						 (1<<10)
#define OB_ADS_SHOWIPO						   (1<<11)
#define OB_ADS_SHOWCONS						  (1<<12)
#define OB_ADS_SHOWMATS						  (1<<13)
#define OB_ADS_SHOWPARTS						 (1<<14)
#define OB_LOCK_LOCX							 1
#define OB_LOCK_LOCY							 2
#define OB_LOCK_LOCZ							 4
#define OB_LOCK_LOC							  7
#define OB_LOCK_ROTX							 8
#define OB_LOCK_ROTY							 16
#define OB_LOCK_ROTZ							 32
#define OB_LOCK_ROT							  56
#define OB_LOCK_SCALEX						   64
#define OB_LOCK_SCALEY						   128
#define OB_LOCK_SCALEZ						   256
#define OB_LOCK_SCALE							448
#define TSE_CLOSED							   1
#define TSE_SELECTED							 2
#define TSE_TEXTBUT							  4
#define PART_EMITTER							 0
#define PART_REACTOR							 1
#define PART_HAIR								2
#define PART_FLUID							   3
#define PART_REACT_STA_END					   1
#define PART_REACT_MULTIPLE					  2
#define PART_LOOP								4
#define PART_DS_EXPAND						   8
#define PART_HAIR_GEOMETRY					   16
#define PART_UNBORN							  32
#define PART_DIED								64
#define PART_TRAND							   128
#define PART_EDISTR							  256
#define PART_STICKY							  512
#define PART_DIE_ON_COL						  (1<<12)
#define PART_SIZE_DEFL						   (1<<13)
#define PART_ROT_DYN							 (1<<14)
#define PART_SIZEMASS							(1<<16)
#define PART_BOIDS_2D							(1<<19)
#define PART_BRANCHING						   (1<<20)
#define PART_ANIM_BRANCHING					  (1<<21)
#define PART_SYMM_BRANCHING					  (1<<24)
#define PART_HAIR_BSPLINE						1024
#define PART_GRID_INVERT						 (1<<26)
#define PART_CHILD_EFFECT						(1<<27)
#define PART_CHILD_SEAMS						 (1<<28)
#define PART_CHILD_RENDER						(1<<29)
#define PART_CHILD_GUIDE						 (1<<30)
#define PART_SELF_EFFECT						 (1<<22)
#define PART_ROT_KEYS							0
#define PART_ROT_ZINCR						   1
#define PART_ROT_IINCR						   2
#define PART_FROM_VERT						   0
#define PART_FROM_FACE						   1
#define PART_FROM_VOLUME						 2
#define PART_FROM_PARTICLE					   3
#define PART_FROM_CHILD						  4
#define PART_DISTR_JIT						   0
#define PART_DISTR_RAND						  1
#define PART_DISTR_GRID						  2
#define PART_PHYS_NO							 0
#define PART_PHYS_NEWTON						 1
#define PART_PHYS_KEYED						  2
#define PART_PHYS_BOIDS						  3
#define PART_KINK_NO							 0
#define PART_KINK_CURL						   1
#define PART_KINK_RADIAL						 2
#define PART_KINK_WAVE						   3
#define PART_KINK_BRAID						  4
#define PART_DRAW_VEL							1
#define PART_DRAW_SIZE						   4
#define PART_DRAW_EMITTER						8
#define PART_DRAW_HEALTH						 16
#define PART_ABS_PATH_TIME					   32
#define PART_DRAW_BB_LOCK						128
#define PART_DRAW_PARENT						 256
#define PART_DRAW_NUM							512
#define PART_DRAW_RAND_GR						1024
#define PART_DRAW_REN_ADAPT					  2048
#define PART_DRAW_VEL_LENGTH					 (1<<12)
#define PART_DRAW_MAT_COL						(1<<13)
#define PART_DRAW_WHOLE_GR					   (1<<14)
#define PART_DRAW_REN_STRAND					 (1<<15)
#define PART_SIMPLIFY_ENABLE					 1
#define PART_SIMPLIFY_VIEWPORT				   2
#define PART_BB_X								0
#define PART_BB_Y								1
#define PART_BB_Z								2
#define PART_BB_VIEW							 3
#define PART_BB_VEL							  4
#define PART_BB_ANIM_NONE						0
#define PART_BB_ANIM_TIME						1
#define PART_BB_ANIM_ANGLE					   2
#define PART_BB_ANIM_OFF_TIME					3
#define PART_BB_ANIM_OFF_ANGLE				   4
#define PART_BB_OFF_NONE						 0
#define PART_BB_OFF_LINEAR					   1
#define PART_BB_OFF_RANDOM					   2
#define PART_DRAW_NOT							0
#define PART_DRAW_DOT							1
#define PART_DRAW_HALO						   1
#define PART_DRAW_CIRC						   2
#define PART_DRAW_CROSS						  3
#define PART_DRAW_AXIS						   4
#define PART_DRAW_LINE						   5
#define PART_DRAW_PATH						   6
#define PART_DRAW_OB							 7
#define PART_DRAW_GR							 8
#define PART_DRAW_BB							 9
#define PART_DRAW_REND						   10
#define PART_INT_EULER						   0
#define PART_INT_MIDPOINT						1
#define PART_INT_RK4							 2
#define PART_ROT_NOR							 1
#define PART_ROT_VEL							 2
#define PART_ROT_GLOB_X						  3
#define PART_ROT_GLOB_Y						  4
#define PART_ROT_GLOB_Z						  5
#define PART_ROT_OB_X							6
#define PART_ROT_OB_Y							7
#define PART_ROT_OB_Z							8
#define PART_AVE_SPIN							1
#define PART_AVE_RAND							2
#define PART_EVENT_DEATH						 0
#define PART_EVENT_COLLIDE					   1
#define PART_EVENT_NEAR						  2
#define PART_CHILD_PARTICLES					 1
#define PART_CHILD_FACES						 2
#define PSYS_RECALC_REDO						 1
#define PSYS_RECALC_RESET						2
#define PSYS_RECALC_TYPE						 4
#define PSYS_RECALC_CHILD						16
#define PSYS_RECALC_PHYS						 32
#define PSYS_CURRENT							 1
#define PSYS_KEYED_TIMING						8
#define PSYS_ENABLED							 16
#define PSYS_DRAWING							 64
#define PSYS_DELETE							  256
#define PSYS_HAIR_DONE						   512
#define PSYS_KEYED							   1024
#define PSYS_EDITED							  2048
#define PSYS_DISABLED							8192
#define PARS_UNEXIST							 1
#define PARS_NO_DISP							 2
#define PARS_STICKY							  4
#define PARS_TRANSFORM						   8
#define PARS_HIDE								16
#define PARS_TAG								 32
#define PARS_REKEY							   64
#define PARS_EDIT_RECALC						 128
#define PARS_KILLED							  0
#define PARS_DEAD								1
#define PARS_UNBORN							  2
#define PARS_ALIVE							   3
#define PARS_DYING							   4
#define PSYS_TOT_VG							  12
#define PSYS_VG_DENSITY						  0
#define PSYS_VG_VEL							  1
#define PSYS_VG_LENGTH						   2
#define PSYS_VG_CLUMP							3
#define PSYS_VG_KINK							 4
#define PSYS_VG_ROUGH1						   5
#define PSYS_VG_ROUGH2						   6
#define PSYS_VG_ROUGHE						   7
#define PSYS_VG_SIZE							 8
#define PSYS_VG_TAN							  9
#define PSYS_VG_ROT							  10
#define PSYS_VG_EFFECTOR						 11
#define PTARGET_CURRENT						  1
#define PTARGET_VALID							2
#define PTARGET_MODE_NEUTRAL					 0
#define PTARGET_MODE_FRIEND					  1
#define PTARGET_MODE_ENEMY					   2
#define GPROP_BOOL							   0
#define GPROP_INT								1
#define GPROP_FLOAT							  2
#define GPROP_STRING							 3
#define GPROP_VECTOR							 4
#define GPROP_TIME							   5
#define PROP_DEBUG							   1
#define MAX_PROPSTRING						   128
#define SCE_LAY_SOLID							1
#define SCE_LAY_ZTRA							 2
#define SCE_LAY_HALO							 4
#define SCE_LAY_EDGE							 8
#define SCE_LAY_SKY							  16
#define SCE_LAY_STRAND						   32
#define SCE_LAY_ALL_Z							0x8000
#define SCE_LAY_XOR							  0x10000
#define SCE_LAY_DISABLE						  0x20000
#define SCE_LAY_ZMASK							0x40000
#define SCE_LAY_NEG_ZMASK						0x80000
#define SCE_PASS_COMBINED						1
#define SCE_PASS_Z							   2
#define SCE_PASS_RGBA							4
#define SCE_PASS_DIFFUSE						 8
#define SCE_PASS_SPEC							16
#define SCE_PASS_SHADOW						  32
#define SCE_PASS_AO							  64
#define SCE_PASS_REFLECT						 128
#define SCE_PASS_NORMAL						  256
#define SCE_PASS_VECTOR						  512
#define SCE_PASS_REFRACT						 1024
#define SCE_PASS_INDEXOB						 2048
#define SCE_PASS_UV							  4096
#define SCE_PASS_RADIO						   8192
#define SCE_PASS_MIST							16384
#define DOME_FISHEYE							 1
#define DOME_TRUNCATED_FRONT					 2
#define DOME_TRUNCATED_REAR					  3
#define DOME_ENVMAP							  4
#define DOME_PANORAM_SPH						 5
#define DOME_NUM_MODES						   6
#define SCE_GAMEFRAMING_BARS					 0
#define SCE_GAMEFRAMING_EXTEND				   1
#define SCE_GAMEFRAMING_SCALE					2
#define STEREO_NOSTEREO						  1
#define STEREO_ENABLED						   2
#define STEREO_DOME							  3
#define STEREO_QUADBUFFERED					  2
#define STEREO_ABOVEBELOW						3
#define STEREO_INTERLACED						4
#define STEREO_ANAGLYPH						  5
#define STEREO_SIDEBYSIDE						6
#define STEREO_VINTERLACE						7
#define WOPHY_NONE							   0
#define WOPHY_ENJI							   1
#define WOPHY_SUMO							   2
#define WOPHY_DYNAMO							 3
#define WOPHY_ODE								4
#define WOPHY_BULLET							 5
#define VP_COLINDEX							  1
#define VP_AREA								  2
#define VP_SOFT								  4
#define VP_NORMALS							   8
#define VP_SPRAY								 16
#define VP_MIRROR_X							  32
#define VP_HARD								  64
#define VP_ONLYVGROUP							128
#define R_BACKBUF								1
#define R_BACKBUFANIM							2
#define R_FRONTBUF							   4
#define R_FRONTBUFANIM						   8
#define R_OSA									0x0001
#define R_SHADOW								 0x0002
#define R_GAMMA								  0x0004
#define R_ORTHO								  0x0008
#define R_ENVMAP								 0x0010
#define R_EDGE								   0x0020
#define R_FIELDS								 0x0040
#define R_FIELDSTILL							 0x0080
#define R_RADIO								  0x0100
#define R_BORDER								 0x0200
#define R_PANORAMA							   0x0400
#define R_CROP								   0x0800
#define R_COSMO								  0x1000
#define R_ODDFIELD							   0x2000
#define R_MBLUR								  0x4000
#define R_RAYTRACE							   0x10000
#define R_GAUSS								  0x20000
#define R_FBUF								   0x40000
#define R_THREADS								0x80000
#define R_FIXED_THREADS						  0x80000
#define R_SPEED								  0x100000
#define R_SSS									0x200000
#define R_NO_OVERWRITE						   0x400000
#define R_TOUCH								  0x800000
#define R_SIMPLIFY							   0x1000000
#define R_OUTPUT_SCREEN						  0
#define R_OUTPUT_AREA							1
#define R_OUTPUT_WINDOW						  2
#define R_OUTPUT_FORKED						  3
#define R_FILTER_BOX							 0
#define R_FILTER_TENT							1
#define R_FILTER_QUAD							2
#define R_FILTER_CUBIC						   3
#define R_FILTER_CATROM						  4
#define R_FILTER_GAUSS						   5
#define R_FILTER_MITCH						   6
#define R_FILTER_FAST_GAUSS					  7
#define R_INTERN								 0
#define R_YAFRAY								 1
#define R_DOSEQ								  0x0001
#define R_BG_RENDER							  0x0002
#define R_PASSEPARTOUT						   0x0004
#define R_PREVIEWBUTS							0x0008
#define R_EXTENSION							  0x0010
#define R_NODE_PREVIEW						   0x0020
#define R_DOCOMP								 0x0040
#define R_COMP_CROP							  0x0080
#define R_FREE_IMAGE							 0x0100
#define R_SINGLE_LAYER						   0x0200
#define R_EXR_TILE_FILE						  0x0400
#define R_COMP_FREE							  0x0800
#define R_NO_IMAGE_LOAD						  0x1000
#define R_NO_TEX								 0x2000
#define R_STAMP_INFO							 0x4000
#define R_FULL_SAMPLE							0x8000
#define R_COMP_RERENDER						  0x10000
#define R_RECURS_PROTECTION					  0x20000
#define R_STAMP_TIME							 0x0001
#define R_STAMP_FRAME							0x0002
#define R_STAMP_DATE							 0x0004
#define R_STAMP_CAMERA						   0x0008
#define R_STAMP_SCENE							0x0010
#define R_STAMP_NOTE							 0x0020
#define R_STAMP_DRAW							 0x0040
#define R_STAMP_MARKER						   0x0080
#define R_STAMP_FILENAME						 0x0100
#define R_STAMP_SEQSTRIP						 0x0200
#define R_STAMP_ALL							  (R_STAMP_TIME|R_STAMP_FRAME|R_STAMP_DATE|R_STAMP_CAMERA|R_STAMP_SCENE|R_STAMP_NOTE|R_STAMP_MARKER|R_STAMP_FILENAME|R_STAMP_SEQSTRIP)
#define R_ADDSKY								 0
#define R_ALPHAPREMUL							1
#define R_ALPHAKEY							   2
#define R_PLANES24							   24
#define R_PLANES32							   32
#define R_PLANESBW							   8
#define R_COLOR_MANAGEMENT					   1
#define R_TARGA								  0
#define R_IRIS								   1
#define R_HAMX								   2
#define R_FTYPE								  3
#define R_JPEG90								 4
#define R_MOVIE								  5
#define R_IRIZ								   7
#define R_RAWTGA								 14
#define R_AVIRAW								 15
#define R_AVIJPEG								16
#define R_PNG									17
#define R_AVICODEC							   18
#define R_QUICKTIME							  19
#define R_BMP									20
#define R_RADHDR								 21
#define R_TIFF								   22
#define R_OPENEXR								23
#define R_FFMPEG								 24
#define R_FRAMESERVER							25
#define R_CINEON								 26
#define R_DPX									27
#define R_MULTILAYER							 28
#define R_DDS									29
#define R_JP2									30
#define R_H264								   31
#define R_XVID								   32
#define R_THEORA								 33
#define R_OPENEXR_HALF						   1
#define R_OPENEXR_ZBUF						   2
#define R_PREVIEW_JPG							4
#define R_CINEON_LOG							 8
#define R_TIFF_16BIT							 16
#define R_JPEG2K_12BIT						   32
#define R_JPEG2K_16BIT						   64
#define R_JPEG2K_YCC							 128
#define R_JPEG2K_CINE_PRESET					 256
#define R_JPEG2K_CINE_48FPS					  512
#define R_BAKE_CLEAR							 1
#define R_BAKE_OSA							   2
#define R_BAKE_TO_ACTIVE						 4
#define R_BAKE_NORMALIZE						 8
#define R_BAKE_SPACE_CAMERA					  0
#define R_BAKE_SPACE_WORLD					   1
#define R_BAKE_SPACE_OBJECT					  2
#define R_BAKE_SPACE_TANGENT					 3
#define MAXFRAME								 300000
#define MAXFRAMEF								300000.0f
#define MINFRAME								 1
#define MINFRAMEF								1.0f
#define MINAFRAME								-300000
#define MINAFRAMEF							   -300000.0f
#define TESTBASE(v3d,							base)
#define TESTBASELIB(v3d,						 base)
#define TESTBASELIB_BGMODE(v3d,				  base)
#define BASE_SELECTABLE(v3d,					 base)
#define FIRSTBASE								scene->base.first
#define LASTBASE								 scene->base.last
#define BASACT								   (scene->basact)
#define OBACT									(BASACT?
#define ID_NEW(a)								if(
#define ID_NEW_US(a)							 if(
#define ID_NEW_US2(a)							if(
#define CFRA									 (scene->r.cfra)
#define F_CFRA								   ((float)(scene->r.cfra))
#define SFRA									 (scene->r.sfra)
#define EFRA									 (scene->r.efra)
#define PSFRA									((scene->r.psfra
#define PEFRA									((scene->r.psfra
#define FRA2TIME(a)							  ((((double)
#define TIME2FRA(a)							  ((((double)
#define FPS									  (((double)
#define RAD_PHASE_PATCHES						1
#define RAD_PHASE_FACES						  2
#define SCE_SNAP								 1
#define SCE_SNAP_ROTATE						  2
#define SCE_SNAP_PEEL_OBJECT					 4
#define SCE_SNAP_TARGET_CLOSEST				  0
#define SCE_SNAP_TARGET_CENTER				   1
#define SCE_SNAP_TARGET_MEDIAN				   2
#define SCE_SNAP_TARGET_ACTIVE				   3
#define SCE_SNAP_MODE_VERTEX					 0
#define SCE_SNAP_MODE_EDGE					   1
#define SCE_SNAP_MODE_FACE					   2
#define SCE_SNAP_MODE_VOLUME					 3
#define SCE_SELECT_VERTEX						1
#define SCE_SELECT_EDGE						  2
#define SCE_SELECT_FACE						  4
#define SCE_SELECT_PATH						  1
#define SCE_SELECT_POINT						 2
#define SCE_SELECT_END						   4
#define SCE_PRV_CHANGED						  1
#define PROP_SMOOTH							  0
#define PROP_SPHERE							  1
#define PROP_ROOT								2
#define PROP_SHARP							   3
#define PROP_LIN								 4
#define PROP_CONST							   5
#define PROP_RANDOM							  6
#define SCE_DS_SELECTED						  (1<<0)
#define SCE_DS_COLLAPSED						 (1<<1)
#define SCE_NLA_EDIT_ON						  (1<<2)
#define F_ERROR								  -1
#define F_START								  0
#define F_SCENE								  1
#define F_SET									2
#define F_DUPLI								  3
#define AUDIO_MUTE							   1
#define AUDIO_SYNC							   2
#define AUDIO_SCRUB							  4
#define FFMPEG_MULTIPLEX_AUDIO				   1
#define FFMPEG_AUTOSPLIT_OUTPUT				  2
#define IMAGEPAINT_DRAWING					   1
#define IMAGEPAINT_DRAW_TOOL					 2
#define IMAGEPAINT_DRAW_TOOL_DRAWING			 4
#define IMAGEPAINT_PROJECT_DISABLE			   8
#define IMAGEPAINT_PROJECT_XRAY				  16
#define IMAGEPAINT_PROJECT_BACKFACE			  32
#define IMAGEPAINT_PROJECT_FLAT				  64
#define IMAGEPAINT_PROJECT_LAYER_CLONE		   128
#define IMAGEPAINT_PROJECT_LAYER_MASK			256
#define IMAGEPAINT_PROJECT_LAYER_MASK_INV		512
#define UVCALC_FILLHOLES						 1
#define UVCALC_NO_ASPECT_CORRECT				 2
#define UVCALC_TRANSFORM_CORRECT				 4
#define UV_SYNC_SELECTION						1
#define UV_SHOW_SAME_IMAGE					   2
#define UV_SELECT_VERTEX						 1
#define UV_SELECT_EDGE						   2
#define UV_SELECT_FACE						   4
#define UV_SELECT_ISLAND						 8
#define EDGE_MODE_SELECT						 0
#define EDGE_MODE_TAG_SEAM					   1
#define EDGE_MODE_TAG_SHARP					  2
#define EDGE_MODE_TAG_CREASE					 3
#define EDGE_MODE_TAG_BEVEL					  4
#define PE_KEEP_LENGTHS						  1
#define PE_LOCK_FIRST							2
#define PE_DEFLECT_EMITTER					   4
#define PE_INTERPOLATE_ADDED					 8
#define PE_SHOW_CHILD							16
#define PE_SHOW_TIME							 32
#define PE_X_MIRROR							  64
#define PE_BRUSH_NONE							-1
#define PE_BRUSH_COMB							0
#define PE_BRUSH_CUT							 1
#define PE_BRUSH_LENGTH						  2
#define PE_BRUSH_PUFF							3
#define PE_BRUSH_ADD							 4
#define PE_BRUSH_WEIGHT						  5
#define PE_BRUSH_SMOOTH						  6
#define PE_TOT_BRUSH							 7
#define RETOPO								   1
#define RETOPO_PAINT							 2
#define RETOPO_PEN							   1
#define RETOPO_LINE							  2
#define RETOPO_ELLIPSE						   4
#define SKGEN_FILTER_INTERNAL					(1<<0)
#define SKGEN_FILTER_EXTERNAL					(1<<1)
#define SKGEN_SYMMETRY						   (1<<2)
#define SKGEN_CUT_LENGTH						 (1<<3)
#define SKGEN_CUT_ANGLE						  (1<<4)
#define SKGEN_CUT_CORRELATION					(1<<5)
#define SKGEN_HARMONIC						   (1<<6)
#define SKGEN_STICK_TO_EMBEDDING				 (1<<7)
#define SKGEN_ADAPTIVE_DISTANCE				  (1<<8)
#define SKGEN_FILTER_SMART					   (1<<9)
#define SKGEN_DISP_LENGTH						(1<<10)
#define SKGEN_DISP_WEIGHT						(1<<11)
#define SKGEN_DISP_ORIG						  (1<<12)
#define SKGEN_DISP_EMBED						 (1<<13)
#define SKGEN_DISP_INDEX						 (1<<14)
#define SKGEN_SUB_LENGTH						 0
#define SKGEN_SUB_ANGLE						  1
#define SKGEN_SUB_CORRELATION					2
#define SKGEN_SUB_TOTAL						  3
#define SKGEN_SMOOTH							 0
#define SKGEN_AVERAGE							1
#define SKGEN_SHARPEN							2
#define BONE_SKETCHING						   1
#define BONE_SKETCHING_QUICK					 2
#define BONE_SKETCHING_ADJUST					4
#define SK_CONVERT_CUT_FIXED					 0
#define SK_CONVERT_CUT_LENGTH					1
#define SK_CONVERT_CUT_ADAPTATIVE				2
#define SK_CONVERT_RETARGET					  3
#define SK_RETARGET_AUTONAME					 1
#define SK_RETARGET_ROLL_VIEW					1
#define SK_RETARGET_ROLL_JOINT				   2
#define WIN_BACK_OK							  1
#define WIN_FRONT_OK							 2
#define WIN_EQUAL								3
#define HEADER_NO_PULLDOWN					   1
#define AREA_FLAG_DRAWJOINTO					 2
#define AREA_FLAG_DRAWJOINFROM				   4
#define EDGEWIDTH								1
#define AREAGRID								 4
#define AREAMINX								 32
#define HEADERY								  26
#define AREAMINY								 (HEADERY+EDGEWIDTH)
#define HEADERDOWN							   1
#define HEADERTOP								2
#define SCREENNORMAL							 0
#define SCREENFULL							   1
#define SCREENAUTOPLAY						   2
#define SCREENTEMP							   3
#define PNL_SNAP_NONE							0
#define PNL_SNAP_TOP							 1
#define PNL_SNAP_RIGHT						   2
#define PNL_SNAP_BOTTOM						  4
#define PNL_SNAP_LEFT							8
#define PNL_SNAP_DIST							9.0
#define PNL_DEFAULT_CLOSED					   1
#define PNL_NO_HEADER							2
#define SCREEN_MAXHANDLER						8
#define SCREEN_HANDLER_ANIM					  1
#define SCREEN_HANDLER_PYTHON					2
#define SCREEN_HANDLER_VERSE					 3
#define RGN_TYPE_WINDOW						  0
#define RGN_TYPE_HEADER						  1
#define RGN_TYPE_CHANNELS						2
#define RGN_TYPE_TEMPORARY					   3
#define RGN_TYPE_UI							  4
#define RGN_TYPE_TOOLS						   5
#define RGN_TYPE_TOOL_PROPS					  6
#define RGN_ALIGN_NONE						   0
#define RGN_ALIGN_TOP							1
#define RGN_ALIGN_BOTTOM						 2
#define RGN_ALIGN_LEFT						   3
#define RGN_ALIGN_RIGHT						  4
#define RGN_ALIGN_HSPLIT						 5
#define RGN_ALIGN_VSPLIT						 6
#define RGN_ALIGN_FLOAT						  7
#define RGN_ALIGN_QSPLIT						 8
#define RGN_OVERLAP_TOP						  9
#define RGN_OVERLAP_BOTTOM					   10
#define RGN_OVERLAP_LEFT						 11
#define RGN_OVERLAP_RIGHT						12
#define RGN_SPLIT_PREV						   32
#define RGN_FLAG_HIDDEN						  1
#define RGN_FLAG_TOO_SMALL					   2
#define SENS_PROP_EQUAL						  0
#define SENS_PROP_NEQUAL						 1
#define SENS_PROP_INTERVAL					   2
#define SENS_PROP_CHANGED						3
#define SENS_PROP_EXPRESSION					 4
#define SENS_RAY_X_AXIS						  1
#define SENS_RAY_Y_AXIS						  0
#define SENS_RAY_Z_AXIS						  2
#define SENS_RAY_NEG_X_AXIS					  3
#define SENS_RAY_NEG_Y_AXIS					  4
#define SENS_RAY_NEG_Z_AXIS					  5
#define SENS_MESG_MESG						   0
#define SENS_MESG_PROP						   1
#define SENS_ALWAYS							  0
#define SENS_TOUCH							   1
#define SENS_NEAR								2
#define SENS_KEYBOARD							3
#define SENS_PROPERTY							4
#define SENS_MOUSE							   5
#define SENS_COLLISION						   6
#define SENS_RADAR							   7
#define SENS_RANDOM							  8
#define SENS_RAY								 9
#define SENS_MESSAGE							 10
#define SENS_JOYSTICK							11
#define SENS_ACTUATOR							12
#define SENS_DELAY							   13
#define SENS_SHOW								1
#define SENS_DEL								 2
#define SENS_NEW								 4
#define SENS_NOT								 8
#define SENS_VISIBLE							 16
#define SENS_PIN								 32
#define SENS_PULSE_CONT						  0
#define SENS_PULSE_REPEAT						1
#define SENS_NEG_PULSE_MODE					  4
#define SENS_SUPPRESS_POSITIVE				   (1<<0)
#define SENS_SUPPRESS_NEGATIVE				   (1<<1)
#define SENS_COLLISION_MATERIAL				  1
#define SENS_COLLISION_PULSE					 2
#define SENS_RAY_XRAY							2
#define BL_SENS_MOUSE_LEFT_BUTTON				1
#define BL_SENS_MOUSE_MIDDLE_BUTTON			  2
#define BL_SENS_MOUSE_RIGHT_BUTTON			   4
#define BL_SENS_MOUSE_WHEEL_UP				   5
#define BL_SENS_MOUSE_WHEEL_DOWN				 6
#define BL_SENS_MOUSE_MOVEMENT				   8
#define BL_SENS_MOUSE_MOUSEOVER				  16
#define BL_SENS_MOUSE_MOUSEOVER_ANY			  32
#define SENS_JOY_ANY_EVENT					   1
#define SENS_JOY_BUTTON						  0
#define SENS_JOY_BUTTON_PRESSED				  0
#define SENS_JOY_BUTTON_RELEASED				 1
#define SENS_JOY_AXIS							1
#define SENS_JOY_X_AXIS						  0
#define SENS_JOY_Y_AXIS						  1
#define SENS_JOY_NEG_X_AXIS					  2
#define SENS_JOY_NEG_Y_AXIS					  3
#define SENS_JOY_PRECISION					   4
#define SENS_JOY_HAT							 2
#define SENS_JOY_HAT_DIR						 0
#define SENS_JOY_AXIS_SINGLE					 3
#define SENS_DELAY_REPEAT						1
#define SENS_JOY_MAXINDEX						8
#define SEQ_STRIP_OFSBOTTOM					  0.2f
#define SEQ_STRIP_OFSTOP						 0.8f
#define SEQ_SPEED_INTEGRATE					  1
#define SEQ_SPEED_BLEND						  2
#define SEQ_SPEED_COMPRESS_IPO_Y				 4
#define SEQ_LEFTSEL							  2
#define SEQ_RIGHTSEL							 4
#define SEQ_OVERLAP							  8
#define SEQ_FILTERY							  16
#define SEQ_MUTE								 32
#define SEQ_MAKE_PREMUL						  64
#define SEQ_REVERSE_FRAMES					   128
#define SEQ_IPO_FRAME_LOCKED					 256
#define SEQ_EFFECT_NOT_LOADED					512
#define SEQ_FLAG_DELETE						  1024
#define SEQ_FLIPX								2048
#define SEQ_FLIPY								4096
#define SEQ_MAKE_FLOAT						   8192
#define SEQ_LOCK								 16384
#define SEQ_USE_PROXY							32768
#define SEQ_USE_TRANSFORM						65536
#define SEQ_USE_CROP							 131072
#define SEQ_USE_COLOR_BALANCE					262144
#define SEQ_USE_PROXY_CUSTOM_DIR				 524288
#define SEQ_USE_PROXY_CUSTOM_FILE				2097152
#define SEQ_COLOR_BALANCE_INVERSE_GAIN		   1
#define SEQ_COLOR_BALANCE_INVERSE_GAMMA		  2
#define SEQ_COLOR_BALANCE_INVERSE_LIFT		   4
#define SEQ_IMAGE								0
#define SEQ_META								 1
#define SEQ_SCENE								2
#define SEQ_MOVIE								3
#define SEQ_RAM_SOUND							4
#define SEQ_HD_SOUND							 5
#define SEQ_MOVIE_AND_HD_SOUND				   6
#define SEQ_EFFECT							   8
#define SEQ_CROSS								8
#define SEQ_ADD								  9
#define SEQ_SUB								  10
#define SEQ_ALPHAOVER							11
#define SEQ_ALPHAUNDER						   12
#define SEQ_GAMCROSS							 13
#define SEQ_MUL								  14
#define SEQ_OVERDROP							 15
#define SEQ_PLUGIN							   24
#define SEQ_WIPE								 25
#define SEQ_GLOW								 26
#define SEQ_TRANSFORM							27
#define SEQ_COLOR								28
#define SEQ_SPEED								29
#define SEQ_EFFECT_MAX						   29
#define STRIPELEM_FAILED						 0
#define STRIPELEM_OK							 1
#define STRIPELEM_PREVIEW_DONE				   1
#define SEQ_BLEND_REPLACE						0
#define SND_DRAWFRAMES						   1
#define SND_CFRA_NUM							 2
#define SOUND_CHANNELS_STEREO					0
#define SOUND_CHANNELS_LEFT					  1
#define SOUND_CHANNELS_RIGHT					 2
#define SOUND_FLAGS_LOOP						 (1<<0)
#define SOUND_FLAGS_FIXED_VOLUME				 (1<<1)
#define SOUND_FLAGS_FIXED_PANNING				(1<<2)
#define SOUND_FLAGS_3D						   (1<<3)
#define SOUND_FLAGS_BIDIRECTIONAL_LOOP		   (1<<4)
#define SOUND_FLAGS_PRIORITY					 (1<<5)
#define SOUND_FLAGS_SEQUENCE					 (1<<6)
#define SAMPLE_NEEDS_SAVE						(1<<0)
#define SCRIPT_SET_NULL(_script)				 _script->py_draw
#define SCRIPT_RUNNING						   0x01
#define SCRIPT_GUI							   0x02
#define SCRIPT_FILESEL						   0x04
#define SNODE_BACKDRAW						   2
#define SNODE_DISPGP							 4
#define SNODE_TEX_OBJECT						 0
#define SNODE_TEX_WORLD						  1
#define SNODE_TEX_BRUSH						  2
#define CONTEXT_SCENE							0
#define CONTEXT_OBJECT						   1
#define CONTEXT_TYPES							2
#define CONTEXT_SHADING						  3
#define CONTEXT_EDITING						  4
#define CONTEXT_SCRIPT						   5
#define CONTEXT_LOGIC							6
#define BUTS_VIEW								0
#define BUTS_LAMP								1
#define BUTS_MAT								 2
#define BUTS_TEX								 3
#define BUTS_ANIM								4
#define BUTS_WORLD							   5
#define BUTS_RENDER							  6
#define BUTS_EDIT								7
#define BUTS_GAME								8
#define BUTS_FPAINT							  9
#define BUTS_RADIO							   10
#define BUTS_SCRIPT							  11
#define BUTS_SOUND							   12
#define BUTS_CONSTRAINT						  13
#define BUTS_EFFECTS							 14
#define TAB_SHADING_MAT						  0
#define TAB_SHADING_TEX						  1
#define TAB_SHADING_RAD						  2
#define TAB_SHADING_WORLD						3
#define TAB_SHADING_LAMP						 4
#define TAB_OBJECT_OBJECT						0
#define TAB_OBJECT_PHYSICS					   1
#define TAB_OBJECT_PARTICLE					  2
#define TAB_SCENE_RENDER						 0
#define TAB_SCENE_WORLD						  1
#define TAB_SCENE_ANIM						   2
#define TAB_SCENE_SOUND						  3
#define TAB_SCENE_SEQUENCER					  4
#define BCONTEXT_SCENE						   0
#define BCONTEXT_WORLD						   1
#define BCONTEXT_OBJECT						  2
#define BCONTEXT_DATA							3
#define BCONTEXT_MATERIAL						4
#define BCONTEXT_TEXTURE						 5
#define BCONTEXT_PARTICLE						6
#define BCONTEXT_PHYSICS						 7
#define BCONTEXT_BONE							9
#define BCONTEXT_MODIFIER						10
#define BCONTEXT_CONSTRAINT					  12
#define BCONTEXT_TOT							 13
#define SB_PRV_OSA							   1
#define SB_PIN_CONTEXT						   2
#define SB_WORLD_TEX							 4
#define SB_BRUSH_TEX							 8
#define BUT_FREE								 0
#define BUT_HORIZONTAL						   1
#define BUT_VERTICAL							 2
#define BUT_AUTO								 3
#define BUTS_SENS_SEL							1
#define BUTS_SENS_ACT							2
#define BUTS_SENS_LINK						   4
#define BUTS_CONT_SEL							8
#define BUTS_CONT_ACT							16
#define BUTS_CONT_LINK						   32
#define BUTS_ACT_SEL							 64
#define BUTS_ACT_ACT							 128
#define BUTS_ACT_LINK							256
#define BUTS_SENS_STATE						  512
#define BUTS_ACT_STATE						   1024
#define FILE_MAXDIR							  160
#define FILE_MAXFILE							 80
#define FILE_MAX								 240
#define FILE_UNIX								8
#define FILE_BLENDER							 8
#define FILE_SPECIAL							 9
#define FILE_LOADLIB							 1
#define FILE_MAIN								2
#define FILE_LOADFONT							3
#define FILE_SHOWSHORT						   1
#define FILE_STRINGCODE						  2
#define FILE_LINK								4
#define FILE_HIDE_DOT							8
#define FILE_AUTOSELECT						  16
#define FILE_ACTIVELAY						   32
#define FILE_ATCURSOR							64
#define FILE_SYNCPOSE							128
#define FILE_FILTER							  256
#define FILE_BOOKMARKS						   512
#define HILITE								   1
#define BLENDERFILE							  4
#define PSXFILE								  8
#define IMAGEFILE								16
#define MOVIEFILE								32
#define PYSCRIPTFILE							 64
#define FTFONTFILE							   128
#define SOUNDFILE								256
#define TEXTFILE								 512
#define MOVIEFILE_ICON						   1024
#define FOLDERFILE							   2048
#define SI_UVDT_OUTLINE						  0
#define SI_UVDT_DASH							 1
#define SI_UVDT_BLACK							2
#define SI_UVDT_WHITE							3
#define SI_UVDT_STRETCH_ANGLE					0
#define SI_UVDT_STRETCH_AREA					 1
#define SI_STICKY_LOC							0
#define SI_STICKY_DISABLE						1
#define SI_STICKY_VERTEX						 2
#define SI_BE_SQUARE							 1<<0
#define SI_EDITTILE							  1<<1
#define SI_CLIP_UV							   1<<2
#define SI_DRAWTOOL							  1<<3
#define SI_DEPRECATED1						   1<<4
#define SI_DRAWSHADOW							1<<5
#define SI_SELACTFACE							1<<6
#define SI_DEPRECATED2						   1<<7
#define SI_DEPRECATED3						   1<<8
#define SI_COORDFLOATS						   1<<9
#define SI_PIXELSNAP							 1<<10
#define SI_LIVE_UNWRAP						   1<<11
#define SI_USE_ALPHA							 1<<12
#define SI_SHOW_ALPHA							1<<13
#define SI_SHOW_ZBUF							 1<<14
#define SI_PREVSPACE							 1<<15
#define SI_FULLWINDOW							1<<16
#define SI_DEPRECATED4						   1<<17
#define SI_DEPRECATED5						   1<<18
#define SI_DRAW_TILE							 1<<19
#define SI_SMOOTH_UV							 1<<20
#define SI_DRAW_STRETCH						  1<<21
#define SI_DISPGP								1<<22
#define SI_DRAW_OTHER							1<<23
#define SI_COLOR_CORRECTION					  1<<24
#define SIPO_LOCK_VIEW						   (1<<0)
#define SIPO_NOTRANSKEYCULL					  (1<<1)
#define SIPO_NOHANDLES						   (1<<2)
#define SIPO_NODRAWCFRANUM					   (1<<3)
#define SIPO_DRAWTIME							(1<<4)
#define ST_SCROLL_SELECT						 0x0001
#define ST_CLEAR_NAMESPACE					   0x0010
#define ST_FIND_WRAP							 0x0020
#define ST_FIND_ALL							  0x0040
#define ST_MAX_FIND_STR						  256
#define SO_TESTBLOCKS							1
#define SO_NEWSELECTED						   2
#define SO_HIDE_RESTRICTCOLS					 4
#define SO_HIDE_KEYINGSETINFO					8
#define SO_ALL_SCENES							0
#define SO_CUR_SCENE							 1
#define SO_VISIBLE							   2
#define SO_SELECTED							  3
#define SO_ACTIVE								4
#define SO_SAME_TYPE							 5
#define SO_GROUPS								6
#define SO_LIBRARIES							 7
#define SO_VERSE_SESSION						 8
#define SO_VERSE_MS							  9
#define SO_SEQUENCE							  10
#define SO_DATABLOCKS							11
#define SO_USERDEF							   12
#define SO_KEYMAP								13
#define SO_TREESTORE_CLEANUP					 1
#define SO_TREESTORE_REDRAW					  2
#define B_IMASELHOME							 451
#define B_IMASELREMOVEBIP						452
#define C_BACK								   0xBAAAAA
#define C_DARK								   0x665656
#define C_DERK								   0x766666
#define C_HI									 0xCBBBBB
#define C_LO									 0x544444
#define IMS_KNOW_WIN							 1
#define IMS_KNOW_BIP							 2
#define IMS_KNOW_DIR							 4
#define IMS_DOTHE_INF							8
#define IMS_KNOW_INF							 16
#define IMS_DOTHE_IMA							32
#define IMS_KNOW_IMA							 64
#define IMS_FOUND_BIP							128
#define IMS_DOTHE_BIP							256
#define IMS_WRITE_NO_BIP						 512
#define IMS_NOIMA								0
#define IMS_IMA								  1
#define IMS_ANIM								 2
#define IMS_DIR								  4
#define IMS_FILE								 8
#define IMS_STRINGCODE						   16
#define IMS_INDIR								1
#define IMS_INDIRSLI							 2
#define IMS_INFILE							   3
#define IMS_INFILESLI							4
#define SNLA_ALLKEYED							(1<<0)
#define SNLA_ACTIVELAYERS						(1<<1)
#define SNLA_DRAWTIME							(1<<2)
#define SNLA_NOTRANSKEYCULL					  (1<<3)
#define SNLA_NODRAWCFRANUM					   (1<<4)
#define SNLA_NOSTRIPCURVES					   (1<<5)
#define TIME_DRAWFRAMES						  1
#define TIME_CFRA_NUM							2
#define TIME_ONLYACTSEL						  4
#define TIME_REGION							  1
#define TIME_ALL_3D_WIN						  2
#define TIME_ALL_ANIM_WIN						4
#define TIME_ALL_BUTS_WIN						8
#define TIME_WITH_SEQ_AUDIO					  16
#define TIME_SEQ								 32
#define TIME_ALL_IMAGE_WIN					   64
#define TIME_CONTINUE_PHYSICS					128
#define SEQ_DRAW_SEQUENCE						0
#define SEQ_DRAW_IMG_IMBUF					   1
#define SEQ_DRAW_IMG_WAVEFORM					2
#define SEQ_DRAW_IMG_VECTORSCOPE				 3
#define SEQ_DRAW_IMG_HISTOGRAM				   4
#define SEQ_DRAWFRAMES						   1
#define SEQ_MARKER_TRANS						 2
#define SEQ_DRAW_COLOR_SEPERATED				 4
#define SEQ_DRAW_SAFE_MARGINS					8
#define SEQ_DRAW_GPENCIL						 16
#define TEXMAP_CLIP_MIN						  1
#define TEXMAP_CLIP_MAX						  2
#define TEX_CLOUDS							   1
#define TEX_WOOD								 2
#define TEX_MARBLE							   3
#define TEX_MAGIC								4
#define TEX_BLEND								5
#define TEX_STUCCI							   6
#define TEX_NOISE								7
#define TEX_IMAGE								8
#define TEX_PLUGIN							   9
#define TEX_ENVMAP							   10
#define TEX_MUSGRAVE							 11
#define TEX_VORONOI							  12
#define TEX_DISTNOISE							13
#define TEX_MFRACTAL							 0
#define TEX_RIDGEDMF							 1
#define TEX_HYBRIDMF							 2
#define TEX_FBM								  3
#define TEX_HTERRAIN							 4
#define TEX_BLENDER							  0
#define TEX_STDPERLIN							1
#define TEX_NEWPERLIN							2
#define TEX_VORONOI_F1						   3
#define TEX_VORONOI_F2						   4
#define TEX_VORONOI_F3						   5
#define TEX_VORONOI_F4						   6
#define TEX_VORONOI_F2F1						 7
#define TEX_VORONOI_CRACKLE					  8
#define TEX_CELLNOISE							14
#define TEX_DISTANCE							 0
#define TEX_DISTANCE_SQUARED					 1
#define TEX_MANHATTAN							2
#define TEX_CHEBYCHEV							3
#define TEX_MINKOVSKY_HALF					   4
#define TEX_MINKOVSKY_FOUR					   5
#define TEX_MINKOVSKY							6
#define TEX_INTERPOL							 1
#define TEX_USEALPHA							 2
#define TEX_MIPMAP							   4
#define TEX_IMAROT							   16
#define TEX_CALCALPHA							32
#define TEX_NORMALMAP							2048
#define TEX_GAUSS_MIP							4096
#define TEX_FILTER_MIN						   8192
#define TXF_BOX								  0
#define TXF_EWA								  1
#define TXF_FELINE							   2
#define TXF_AREA								 3
#define TXF_SAT								  4
#define TEX_FIELDS_							  8
#define TEX_ANIMCYCLIC_						  64
#define TEX_ANIM5_							   128
#define TEX_ANTIALI_							 256
#define TEX_ANTISCALE_						   512
#define TEX_STD_FIELD_						   1024
#define TEX_COLORBAND							1
#define TEX_FLIPBLEND							2
#define TEX_NEGALPHA							 4
#define TEX_CHECKER_ODD						  8
#define TEX_CHECKER_EVEN						 16
#define TEX_PRV_ALPHA							32
#define TEX_PRV_NOR							  64
#define TEX_REPEAT_XMIR						  128
#define TEX_REPEAT_YMIR						  256
#define TEX_FLAG_MASK							(
#define TEX_EXTEND							   1
#define TEX_CLIP								 2
#define TEX_REPEAT							   3
#define TEX_CLIPCUBE							 4
#define TEX_CHECKER							  5
#define TEX_NOISESOFT							0
#define TEX_NOISEPERL							1
#define TEX_SIN								  0
#define TEX_SAW								  1
#define TEX_TRI								  2
#define TEX_BAND								 0
#define TEX_RING								 1
#define TEX_BANDNOISE							2
#define TEX_RINGNOISE							3
#define TEX_DEFAULT							  0
#define TEX_COLOR								1
#define TEX_SOFT								 0
#define TEX_SHARP								1
#define TEX_SHARPER							  2
#define TEX_LIN								  0
#define TEX_QUAD								 1
#define TEX_EASE								 2
#define TEX_DIAG								 3
#define TEX_SPHERE							   4
#define TEX_HALO								 5
#define TEX_RAD								  6
#define TEX_PLASTIC							  0
#define TEX_WALLIN							   1
#define TEX_WALLOUT							  2
#define TEX_INTENSITY							0
#define TEX_COL1								 1
#define TEX_COL2								 2
#define TEX_COL3								 3
#define MTEX_NSPACE_CAMERA					   0
#define MTEX_NSPACE_WORLD						1
#define MTEX_NSPACE_OBJECT					   2
#define MTEX_NSPACE_TANGENT					  3
#define MTEX_FLAT								0
#define MTEX_CUBE								1
#define MTEX_TUBE								2
#define MTEX_SPHERE							  3
#define TEX_INT								  0
#define TEX_RGB								  1
#define TEX_NOR								  2
#define TEX_PR_TEXTURE						   0
#define TEX_PR_OTHER							 1
#define TEX_PR_BOTH							  2
#define PROJ_N								   0
#define PROJ_X								   1
#define PROJ_Y								   2
#define PROJ_Z								   3
#define MTEX_RGBTOINT							1
#define MTEX_STENCIL							 2
#define MTEX_NEGATIVE							4
#define MTEX_ALPHAMIX							8
#define MTEX_VIEWSPACE						   16
#define MTEX_DUPLI_MAPTO						 32
#define MTEX_OB_DUPLI_ORIG					   64
#define MTEX_NEW_BUMP							128
#define MTEX_BLEND							   0
#define MTEX_MUL								 1
#define MTEX_ADD								 2
#define MTEX_SUB								 3
#define MTEX_DIV								 4
#define MTEX_DARK								5
#define MTEX_DIFF								6
#define MTEX_LIGHT							   7
#define MTEX_SCREEN							  8
#define MTEX_OVERLAY							 9
#define MTEX_BLEND_HUE						   10
#define MTEX_BLEND_SAT						   11
#define MTEX_BLEND_VAL						   12
#define MTEX_BLEND_COLOR						 13
#define MTEX_NUM_BLENDTYPES					  14
#define ENV_CUBE								 0
#define ENV_PLANE								1
#define ENV_SPHERE							   2
#define ENV_STATIC							   0
#define ENV_ANIM								 1
#define ENV_LOAD								 2
#define ENV_NORMAL							   1
#define ENV_OSA								  2
#define TXT_OFFSET							   35
#define TXT_TABSIZE							  4
#define TXT_INIT_UNDO							1024
#define TXT_MAX_UNDO							 (TXT_INIT_UNDO*TXT_INIT_UNDO)
#define TXT_ISDIRTY							  0x0001
#define TXT_DEPRECATED						   0x0004
#define TXT_ISMEM								0x0004
#define TXT_ISEXT								0x0008
#define TXT_ISSCRIPT							 0x0010
#define TXT_READONLY							 0x0100
#define TXT_FOLLOW							   0x0200
#define TXT_NOCONT							   0x00
#define TXT_SNGQUOTSTR						   0x01
#define TXT_DBLQUOTSTR						   0x02
#define TXT_TRISTR							   0x04
#define TXT_SNGTRISTR							0x05
#define TXT_DBLTRISTR							0x06
#define MAX_STYLE_NAME						   64
#define MAX_FONT_NAME							256
#define UIFONT_DEFAULT						   0
#define UIFONT_BITMAP							1
#define UIFONT_CUSTOM1						   2
#define UIFONT_CUSTOM2						   3
#define UI_STYLE_TEXT_LEFT					   0
#define UI_STYLE_TEXT_CENTER					 1
#define UI_STYLE_TEXT_RIGHT					  2
#define TH_WIRECOLOR_CONSTCOLS				   (1<<0)
#define TH_WIRECOLOR_TEXTCOLS					(1<<1)
#define USER_AUTOSAVE							(1<<0)
#define USER_AUTOGRABGRID						(1<<1)
#define USER_AUTOROTGRID						 (1<<2)
#define USER_AUTOSIZEGRID						(1<<3)
#define USER_SCENEGLOBAL						 (1<<4)
#define USER_TRACKBALL						   (1<<5)
#define USER_DUPLILINK						   (1<<6)
#define USER_FSCOLLUM							(1<<7)
#define USER_MAT_ON_OB						   (1<<8)
#define USER_VIEWMOVE							(1<<10)
#define USER_TOOLTIPS							(1<<11)
#define USER_TWOBUTTONMOUSE					  (1<<12)
#define USER_NONUMPAD							(1<<13)
#define USER_LMOUSESELECT						(1<<14)
#define USER_FILECOMPRESS						(1<<15)
#define USER_SAVE_PREVIEWS					   (1<<16)
#define USER_CUSTOM_RANGE						(1<<17)
#define USER_ADD_EDITMODE						(1<<18)
#define USER_ADD_VIEWALIGNED					 (1<<19)
#define USER_RELPATHS							(1<<20)
#define USER_DRAGIMMEDIATE					   (1<<21)
#define USER_DONT_DOSCRIPTLINKS				  (1<<22)
#define USER_ZOOM_CONT						   0
#define USER_ZOOM_SCALE						  1
#define USER_ZOOM_DOLLY						  2
#define USER_WHEELZOOMDIR						(1<<2)
#define USER_FILTERFILEEXTS					  (1<<3)
#define USER_DRAWVIEWINFO						(1<<4)
#define USER_PLAINMENUS						  (1<<5)
#define USER_FLIPFULLSCREEN					  (1<<7)
#define USER_ALLWINCODECS						(1<<8)
#define USER_MENUOPENAUTO						(1<<9)
#define USER_PANELPINNED						 (1<<10)
#define USER_AUTOPERSP						   (1<<11)
#define USER_LOCKAROUND						  (1<<12)
#define USER_GLOBALUNDO						  (1<<13)
#define USER_ORBIT_SELECTION					 (1<<14)
#define USER_ORBIT_ZBUF						  (1<<15)
#define USER_HIDE_DOT							(1<<16)
#define USER_SHOW_ROTVIEWICON					(1<<17)
#define USER_SHOW_VIEWPORTNAME				   (1<<18)
#define USER_ZOOM_TO_MOUSEPOS					(1<<20)
#define USER_SHOW_FPS							(1<<21)
#define USER_MMB_PASTE						   (1<<22)
#define USER_MENUFIXEDORDER					  (1<<23)
#define AUTOKEY_ON							   1
#define AUTOKEY_MODE_NORMAL					  3
#define AUTOKEY_MODE_EDITKEYS					5
#define AUTOKEY_FLAG_INSERTAVAIL				 (1<<0)
#define AUTOKEY_FLAG_INSERTNEEDED				(1<<1)
#define AUTOKEY_FLAG_AUTOMATKEY				  (1<<2)
#define USER_TR_TOOLTIPS						 (1<<0)
#define USER_TR_BUTTONS						  (1<<1)
#define USER_TR_MENUS							(1<<2)
#define USER_TR_FILESELECT					   (1<<3)
#define USER_TR_TEXTEDIT						 (1<<4)
#define USER_DOTRANSLATE						 (1<<5)
#define USER_USETEXTUREFONT					  (1<<6)
#define CONVERT_TO_UTF8						  (1<<7)
#define USER_DUP_MESH							(1<<0)
#define USER_DUP_CURVE						   (1<<1)
#define USER_DUP_SURF							(1<<2)
#define USER_DUP_FONT							(1<<3)
#define USER_DUP_MBALL						   (1<<4)
#define USER_DUP_LAMP							(1<<5)
#define USER_DUP_IPO							 (1<<6)
#define USER_DUP_MAT							 (1<<7)
#define USER_DUP_TEX							 (1<<8)
#define USER_DUP_ARM							 (1<<9)
#define USER_DUP_ACT							 (1<<10)
#define USER_DEPRECATED_FLAG					 1
#define USER_DISABLE_SOUND					   2
#define USER_DISABLE_MIPMAP					  4
#define USER_DRAW_TRIPLE						 0
#define USER_DRAW_OVERLAP						1
#define USER_DRAW_FULL						   2
#define GP_PAINT_DOSMOOTH						(1<<0)
#define GP_PAINT_DOSIMPLIFY					  (1<<1)
#define TH_MINIMAL							   0
#define TH_ROUNDSHADED						   1
#define TH_ROUNDED							   2
#define TH_OLDSKOOL							  3
#define TH_SHADED								4
#define FO_CURS								  1
#define FO_CURSUP								2
#define FO_CURSDOWN							  3
#define FO_DUPLI								 4
#define FO_PAGEUP								8
#define FO_PAGEDOWN							  9
#define FO_SELCHANGE							 10
#define V2D_KEEPZOOM							 0x0001
#define V2D_KEEPASPECT						   0x0002
#define V2D_LOCKZOOM_X						   0x0100
#define V2D_LOCKZOOM_Y						   0x0200
#define V2D_LOCKOFS_X							(1<<1)
#define V2D_LOCKOFS_Y							(1<<2)
#define V2D_KEEPTOT_FREE						 0
#define V2D_KEEPTOT_BOUNDS					   1
#define V2D_KEEPTOT_STRICT					   2
#define V2D_VIEWSYNC_SCREEN_TIME				 (1<<0)
#define V2D_VIEWSYNC_AREA_VERTICAL			   (1<<1)
#define V2D_PIXELOFS_X						   (1<<2)
#define V2D_PIXELOFS_Y						   (1<<3)
#define V2D_IS_INITIALISED					   (1<<10)
#define V2D_SCROLL_LEFT						  (1<<0)
#define V2D_SCROLL_RIGHT						 (1<<1)
#define V2D_SCROLL_VERTICAL					  (V2D_SCROLL_LEFT|V2D_SCROLL_RIGHT)
#define V2D_SCROLL_TOP						   (1<<2)
#define V2D_SCROLL_BOTTOM						(1<<3)
#define V2D_SCROLL_BOTTOM_O					  (1<<4)
#define V2D_SCROLL_HORIZONTAL					(V2D_SCROLL_TOP|V2D_SCROLL_BOTTOM|V2D_SCROLL_BOTTOM_O)
#define V2D_SCROLL_SCALE_VERTICAL				(1<<5)
#define V2D_SCROLL_SCALE_HORIZONTAL			  (1<<6)
#define V2D_SCROLL_VERTICAL_HIDE				 (1<<7)
#define V2D_SCROLL_HORIZONTAL_HIDE			   (1<<8)
#define V2D_SCROLL_H_ACTIVE					  (1<<0)
#define V2D_SCROLL_V_ACTIVE					  (1<<1)
#define V2D_ALIGN_FREE						   0
#define V2D_ALIGN_NO_POS_X					   (1<<0)
#define V2D_ALIGN_NO_NEG_X					   (1<<1)
#define V2D_ALIGN_NO_POS_Y					   (1<<2)
#define V2D_ALIGN_NO_NEG_Y					   (1<<3)
#define V3D_MODE								 (16+32+64+128+256+512)
#define V3D_DISPIMAGE							1
#define V3D_DISPBGPIC							2
#define V3D_HIDE_HELPLINES					   4
#define V3D_NEEDBACKBUFDRAW					  8
#define V3D_EDITMODE							 16
#define V3D_VERTEXPAINT						  32
#define V3D_FACESELECT						   64
#define V3D_POSEMODE							 128
#define V3D_TEXTUREPAINT						 256
#define V3D_WEIGHTPAINT						  512
#define V3D_ALIGN								1024
#define V3D_SELECT_OUTLINE					   2048
#define V3D_ZBUF_SELECT						  4096
#define V3D_GLOBAL_STATS						 8192
#define V3D_DRAW_CENTERS						 32768
#define RV3D_FLYMODE							 2
#define RV3D_CLIPPING							4
#define RV3D_LOCKED							  1
#define RV3D_BOXVIEW							 2
#define RV3D_BOXCLIP							 4
#define V3D_SOLID_TEX							8
#define V3D_DISPGP							   16
#define V3D_CENTER							   0
#define V3D_CENTROID							 3
#define V3D_CURSOR							   1
#define V3D_LOCAL								2
#define V3D_ACTIVE							   4
#define V3D_VIEW_FRONT						   1
#define V3D_VIEW_BACK							2
#define V3D_VIEW_LEFT							3
#define V3D_VIEW_RIGHT						   4
#define V3D_VIEW_TOP							 5
#define V3D_VIEW_BOTTOM						  6
#define V3D_VIEW_PERSPORTHO					  7
#define V3D_VIEW_CAMERA						  8
#define V3D_VIEW_STEPLEFT						9
#define V3D_VIEW_STEPRIGHT					   10
#define V3D_VIEW_STEPDOWN						11
#define V3D_VIEW_STEPUP						  12
#define V3D_VIEW_PANLEFT						 13
#define V3D_VIEW_PANRIGHT						14
#define V3D_VIEW_PANDOWN						 15
#define V3D_VIEW_PANUP						   16
#define V3D_ORTHO								0
#define V3D_PERSP								1
#define V3D_CAMOB								2
#define V3D_SHOW_FLOOR						   1
#define V3D_SHOW_X							   2
#define V3D_SHOW_Y							   4
#define V3D_SHOW_Z							   8
#define V3D_MANIP_TRANSLATE					  1
#define V3D_MANIP_ROTATE						 2
#define V3D_MANIP_SCALE						  4
#define V3D_MANIP_GLOBAL						 0
#define V3D_MANIP_LOCAL						  1
#define V3D_MANIP_NORMAL						 2
#define V3D_MANIP_VIEW						   3
#define V3D_MANIP_CUSTOM						 4
#define V3D_USE_MANIPULATOR					  1
#define V3D_DRAW_MANIPULATOR					 2
#define V3D_CALC_MANIPULATOR					 4
#define OP_MAX_TYPENAME						  64
#define KMAP_MAX_NAME							64
#define RPT_DEBUG_ALL							(RPT_DEBUG)
#define RPT_INFO_ALL							 (RPT_INFO)
#define RPT_OPERATOR_ALL						 (RPT_OPERATOR)
#define RPT_WARNING_ALL						  (RPT_WARNING)
#define RPT_ERROR_ALL							(RPT_ERROR|RPT_ERROR_INVALID_INPUT|RPT_ERROR_INVALID_CONTEXT|RPT_ERROR_OUT_OF_MEMORY)
#define WM_INIT_WINDOW						   1<<0
#define WM_INIT_KEYMAP						   1<<1
#define OPERATOR_RUNNING_MODAL				   1
#define OPERATOR_CANCELLED					   2
#define OPERATOR_FINISHED						4
#define OPERATOR_PASS_THROUGH					8
#define MAX_MTEX								 18
#define WO_SKYBLEND							  1
#define WO_SKYREAL							   2
#define WO_SKYPAPER							  4
#define WO_SKYTEX								8
#define WO_ZENUP								 16
#define WO_MIST								  1
#define WO_STARS								 2
#define WO_DOF								   4
#define WO_ACTIVITY_CULLING					  8
#define WO_AMB_OCC							   16
#define WO_DBVT_CULLING						  32
#define WO_AOADD								 0
#define WO_AOSUB								 1
#define WO_AOADDSUB							  2
#define WO_AOSAMP_CONSTANT					   0
#define WO_AOSAMP_HALTON						 1
#define WO_AOSAMP_HAMMERSLEY					 2
#define WO_AODIST								1
#define WO_AORNDSMP							  2
#define WO_AOCACHE							   4
#define WO_AOPLAIN							   0
#define WO_AOSKYCOL							  1
#define WO_AOSKYTEX							  2
#define WO_AOGATHER_RAYTRACE					 0
#define WO_AOGATHER_APPROX					   1
#define TEXCO_ANGMAP							 64
#define TEXCO_H_SPHEREMAP						256
#define TEXCO_H_TUBEMAP						  1024
#define WOMAP_BLEND							  1
#define WOMAP_HORIZ							  2
#define WOMAP_ZENUP							  4
#define WOMAP_ZENDOWN							8
#define WOMAP_MIST							   16
#define WO_DS_EXPAND							 (1<<0)


#define CONSTRAINT_SPACE_LOCAL 1
#define CONSTRAINT_TYPE_ROTLIMIT 5
#define CONSTRAINT_TYPE_LOCLIMIT 6
#define LIMIT_XROT 0x01
#define LIMIT_YROT 0x02
#define LIMIT_ZROT 0x04
#define LIMIT_XMIN 0x01
#define LIMIT_XMAX 0x02
#define LIMIT_YMIN 0x04
#define LIMIT_YMAX 0x08
#define LIMIT_ZMIN 0x10
#define LIMIT_ZMAX 0x20

#endif
